swordev / suid

A port of Material-UI (MUI) built with SolidJS.
https://suid.io
MIT License
673 stars 48 forks source link

Some issues with `<Grid>` #230

Closed Industrial closed 1 year ago

Industrial commented 1 year ago

Hi.

I'm copying source code from a MUI project and I have:

        <Grid
          container
          rowSpacing={2}
          columnSpacing={2}
          sx={{
            marginTop: 0,
            width: '100%',
            marginLeft: 0,
          }}
        >
          <Grid
            xs={12}
            sx={{
              marginBottom: 1,
            }}
          >
            <Typography variant="h3">{title}</Typography>
          </Grid>
          <Grid xs={12} sm={6} lg={3}>
            <CounterCard count={listsCount} label="Lists" href="/lists" />
          </Grid>
          <Grid xs={12} sm={6} lg={3}>
            <CounterCard count={projectsCount} label="Projects" href="/projects" />
          </Grid>
          <Grid xs={12} sm={6} lg={3}>
            <CounterCard count={tagsCount} label="Tags" href="/tags" />
          </Grid>
          <Grid xs={12} sm={6} lg={3}>
            <CounterCard count={itemsCount} label="Items" href="/items" />
          </Grid>
        </Grid>
juanrgm commented 1 year ago

Are you using @mui/material/Unstable_Grid2?

You aren't setting the item property in the Grid components.

https://stackblitz.com/edit/react-kqfhe6?file=demo.tsx

Industrial commented 1 year ago

Right, it works correctly now. Thanks!