Stack
atomVertical flex layout primitive. Accepts a gap spacing token (0–24), align, justify, wrap, and a polymorphic as prop (div, section, nav, form, fieldset, ul, ol). Gap values reference spacing tokens so density presets scale layout automatically.
Basic stack
Vertical layout with default gap.
Form layout
Stack as a form container with wider spacing.
Usage
Installation
API Reference
Stack props — * required
| Prop | Type | Default | Description |
|---|---|---|---|
gap | "0" | "1" | "2" | "3" | "4" | "6" | "8" | "10" | "12" | "16" | "20" | "24" | "4" | Vertical gap between children using spacing tokens. |
align | "stretch" | "start" | "center" | "end" | "stretch" | Cross-axis alignment. |
justify | "start" | "center" | "end" | "between" | "around" | "evenly" | — | Main-axis distribution. |
as | "div" | "section" | "nav" | "form" | "fieldset" | "ul" | "ol" | "div" | Rendered HTML element. |
wrap | boolean | false | Allow children to wrap. |