data/themes/docs/components/grid.mdx
<Grid columns="3" gap="3" rows="repeat(2, 64px)" width="auto">
<DecorativeBox />
<DecorativeBox />
<DecorativeBox />
<DecorativeBox />
<DecorativeBox />
<DecorativeBox />
</Grid>
This component is based on the div element and supports common margin props.
Use these props to create grid layouts.
<ThemesPropsTable defs="gridPropDefs" />The following props are shared between Box, Flex, Grid, Container and Section components. Read more about layout components in Layout.
<ThemesPropsTable defs="layoutPropDefs" />All props marked Responsive, such as columns and rows accept a breakpoint object. For example, the following grid starts with 1 column, and uses 2 columns from the medium breakpoint.
<Grid columns={{ initial: "1", md: "2" }} gap="3" width="auto">
<Box height="64px">
<DecorativeBox />
</Box>
<Box height="64px">
<DecorativeBox />
</Box>
</Grid>