Container
A wrapper component that sets a max-width and centers content horizontally.
Usage
Import all parts and piece them together.
Container Props
Prop | Type | Default |
---|---|---|
size | "small" | "medium" | "large" | "none" | "none" |
align | "left" | "center" | "right" | "center" |
className | string | - |
ariaLabel | string | - |
ariaLabelledby | string | - |
Examples
Size
Containers can have multiple size.
Align
Containers can be aligned to the left, center, or right of their parent element.
Accessibility
The Container component is designed with accessibility in mind:
- Uses
role="region"
to mark it as a landmark for screen readers - Supports labeling via
aria-label
oraria-labelledby
- Helps organize content into meaningful sections