Layout
Container
A layout that centers page content and caps its width.
ReactVueWeb Components
View in Storybook Playground
Examples
<Container>…</Container> // responsive
<Container width="lg">…</Container> // fluid until lg
<Container width="fluid">…</Container> Props
| Name | Type | Default | Description |
|---|---|---|---|
width | ContainerWidth | — | Cap behavior: - omitted → responsive (caps step up at each breakpoint) - a breakpoint (`'sm'`…`'2xl'`) → fluid until then, capped after - `'fluid'` → always full width |
Accessibility
- Body/background contrast is ≥ 7:1 (AAA) in both light and dark.
- Every interaction works with the keyboard alone.
- The focus ring is always visible.
- Respects prefers-reduced-motion and stops excessive motion.
Every component is designed to meet WCAG 2.1 AAA.