File size: 779 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 43 44 45 46 |
---
title: Container
description:
Used to constrain a content's width to the current breakpoint, while keeping
it fluid.
links:
source: components/container
storybook: layout-container--basic
recipe: container
---
<ExampleTabs name="container-basic" />
## Usage
The default `maxWidth` is `8xl` which maps to `90rem (1440px)`.
```jsx
import { Container } from "@chakra-ui/react"
```
```jsx
<Container>
<div />
</Container>
```
## Examples
### Sizes
Use the `maxWidth` prop to change the size of the container.
<ExampleTabs name="container-with-sizes" />
### Fluid
Use the `fluid` prop to make the container stretch to fill the width of its
parent.
<ExampleTabs name="container-with-fluid" />
## Props
<PropTable component="Container" part="Container" />
|