Stack
A direction-first Flexbox wrapper for evenly spaced vertical or horizontal layouts.
Stack
Use Stack for simple one-dimensional layouts such as form sections, button groups, and compact panel content.
Basic Usage
Stack
Demo will load when visible.
API
Props
| Prop | Type | Default | Description |
|---|---|---|---|
direction | 'horizontal' | 'vertical' | 'vertical' | Direction |
gap | number | string | 12 | Gap |
align | string | 'stretch' | align-items |
justify | string | 'flex-start' | justify-content |
wrap | boolean | false | Allows children to wrap onto multiple lines. |
inline | boolean | false | Uses inline-flex instead of block-level flex. |