Grid is a div tag that is Gridbox by default.
div
Grid
GridItem
import { Grid, GridItem } from "@dreamy-ui/react/rsc";
Base usage of a grid.
<Grid color='white' columns={3}> <GridItem bg='green.400' p={2} color='black'>1</GridItem> <GridItem bg='blue.400' p={2}>2</GridItem> <GridItem bg='purple.400' p={2}>3</GridItem> <GridItem bg='green.400' p={2} color='black'>1</GridItem> <GridItem bg='blue.400' p={2}>2</GridItem> <GridItem bg='purple.400' p={2}>3</GridItem> </Grid>
<Grid color='white' columns={3}> <GridItem colSpan={2} bg='green.400' p={2} color='black'>1</GridItem> <GridItem rowSpan={2} bg='blue.400' p={2}>2</GridItem> <GridItem bg='purple.400' p={2}>3</GridItem> </Grid>