Layout
Stack
A one-dimensional layout that spaces items by a set gap.
ReactVueWeb Components
View in Storybook Playground
Examples
<Stack gap="4">…</Stack> // vertical
<Stack direction="horizontal" gap="2">…</Stack> // horizontal Props
| Name | Type | Default | Description |
|---|---|---|---|
direction | 'vertical' | 'horizontal' | vertical | Layout direction. @default 'vertical' |
gap | SpacingToken | 3 | Gap between children (spacing token). @default '3' |
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.