--- title: Grid sidebar_label: Grid --- import { StoryWithControls } from '../../../src/components/StorybookWrapper'; # Grid The Grid system of Ant Design is based on a 24-grid layout. The `Row` and `Col` components are used to create flexible and responsive grid layouts. ## Live Example ## Try It Edit the code below to experiment with the component: ```tsx live function Demo() { return (
col-12
col-12
col-8
col-8
col-8
); } ``` ## Responsive Grid ```tsx live function ResponsiveGrid() { return (
Responsive
Responsive
Responsive
Responsive
); } ``` ## Alignment ```tsx live function AlignmentDemo() { const boxStyle = { background: '#e6f4ff', padding: '16px 0', border: '1px solid #91caff', textAlign: 'center' }; return (
start
start
center
center
end
end
between
between
); } ``` ## Props | Prop | Type | Default | Description | |------|------|---------|-------------| | `align` | `string` | `"top"` | Vertical alignment of columns within the row. | | `justify` | `string` | `"start"` | Horizontal distribution of columns within the row. | | `wrap` | `boolean` | `true` | Whether columns are allowed to wrap to the next line. | | `gutter` | `number` | `16` | Spacing between columns in pixels. | ## Import ```tsx import Grid from '@superset/components'; ``` --- :::tip[Improve this page] This documentation is auto-generated from the component's Storybook story. Help improve it by [editing the story file](https://github.com/apache/superset/edit/master/superset-frontend/packages/superset-ui-core/src/components/Grid/Grid.stories.tsx). :::