Build faster with Premium Chakra UI Components 💎

Learn more
Skip to Content
DocsPlaygroundGuidesBlog
Sponsor

Grid

Used to manage grid layouts

SourceStorybook

Usage

import { Grid, GridItem } from "@chakra-ui/react"
<Grid>
  <GridItem />
  <GridItem />
</Grid>

Examples

Col Span

Pass colSpan prop to GridItem to span across columns.

Spanning Columns

In some layouts, you may need certain grid items to span specific amount of columns or rows instead of an even distribution

rowSpan=2
colSpan=2
colSpan=2
colSpan=4

Props

PropDefaultType
templateColumns
SystemStyleObject['gridTemplateColumns']

autoFlow
SystemStyleObject['gridAutoFlow']

autoRows
SystemStyleObject['gridAutoRows']

autoColumns
SystemStyleObject['gridAutoColumns']

templateRows
SystemStyleObject['gridTemplateRows']

templateAreas
SystemStyleObject['gridTemplateAreas']

column
SystemStyleObject['gridColumn']

row
SystemStyleObject['gridRow']

inline
boolean

Previous

Float

Next

Group