File size: 670 Bytes
1e92f2d |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 |
---
title: Grid
description: Used to manage grid layouts
links:
source: components/grid
storybook: components-grid--basic
---
<ExampleTabs name="grid-basic" />
## Usage
```jsx
import { Grid, GridItem } from "@chakra-ui/react"
```
```jsx
<Grid>
<GridItem />
<GridItem />
</Grid>
```
## Examples
### Col Span
Pass `colSpan` prop to `GridItem` to span across columns.
<ExampleTabs name="grid-with-col-span" />
### Spanning Columns
In some layouts, you may need certain grid items to span specific amount of
columns or rows instead of an even distribution
<ExampleTabs name="grid-spanning-columns" />
## Props
<PropTable component="Grid" part="Grid" />
|