Stack
Stack manages the layout of its children in one dimension (row or column) with consistent spacing.
Row (default)
Column
Spacing
Spacing is a multiplier of the base spacing unit (8px). spacing="1" = 8px, spacing="2" = 16px, etc. Any CSS value also works.
Alignment
API
| Attribute | Type | Default | Description |
|---|---|---|---|
direction | row | row-reverse | column | column-reverse | row | Flex direction. |
spacing | number | CSS value | 0 | Gap between children. Numbers are multiplied by 8px. |
align | flex-start | flex-end | center | stretch | baseline | center | Cross-axis alignment. |
justify | flex-start | flex-end | center | space-between | space-around | space-evenly | flex-start | Main-axis justification. |
flex-wrap | wrap | nowrap | wrap-reverse | nowrap | Wrapping behavior. |