import { Canvas, Meta, ArgTypes } from '@storybook/blocks';
import { ThemeProvider } from 'styled-components';
import Grid from './';
import Cell from './Cell';
import { Child } from './Grid.stories';
import { lightTheme } from '../../../theme/';
import { GlobalStyles } from '../../../theme/GlobalStyles';
import * as GridStories from './Grid.stories.tsx';
# Grid
The Grid component adapts to screen size and orientation, ensuring consistency across layouts.
## Importing
```javascript
import { Grid } from 'amazon-chime-sdk-component-library-react';
```
## Example
### Basic Grid
You can place children components based on grid props, e.g. `gridGap`, `gridTemplateRows`, `gridTemplateColumns`, `responsive`, etc.
```jsx
Child
Child
Child
Child
Child
Child
```
### Named Areas Grid
First, you define names of your choice on grid items with the `gridArea` property.
Then, on the grid container, you can use the `gridTemplateAreas` property to define how to place named areas.
```jsx
footer
|
SideBar
|
Main
|
Other
Other
```
## Props