Constrains the maximum width of page content.
<Box style={{ background: 'var(--gray-a2)', borderRadius: 'var(--radius-3)' }}>
<Container size="1">
<DecorativeBox>
<Box py="9" />
</DecorativeBox>
</Container>
</Box>
This component is based on the div
element and supports common margin props.
Container sizes use the following max-width
values, which may be customized if needed.
The following props are shared between Box, Flex, Grid, Container and Section layout components.