Layout
Container
Centred content width with the horizontal page inset.
import { Container } from "@somewhere-com/ds";
<Container size="large">Wide marketing content</Container>
<Container size="medium">Focused copy</Container>
<Container size="small">Narrow form</Container>
Props
size:small|medium|large(default). The max widths are 48rem, 64rem, and 90rem (container.small,container.medium,container.large). Uselargefor wide marketing layouts,mediumfor focused copy, andsmallfor forms and narrow reading.- It always includes the
padding.pageinset: 3rem, or 1rem on mobile.
Examples
Rendered from the Storybook stories. To change props and see every state live, open Container in Storybook.
size="small"
size="medium"
size="large"