Stack
A layout utility that structures elements in a single column (or row) with consistent gaps.
Deploy completed
2m agoProduction build finished in 42s.
New comment
1h agoMarcos replied to your review on checkout-flow.
Storage almost full
3h agoYou have used 92% of your workspace quota.
Installation
pnpm dlx nachui add stackAnatomy
API Reference
Stack
| Prop | Type | Default | Description |
|---|---|---|---|
as | React.ElementType | 'div' | The element type to render the component as |
direction | 'column' | 'row' | 'column' | The flex orientation flow |
align | 'start' | 'center' | 'end' | 'baseline' | 'stretch' | 'stretch' | CSS align-items mapping |
justify | 'start' | 'center' | 'end' | 'between' | 'around' | 'evenly' | 'start' | CSS justify-content mapping |
wrap | 'nowrap' | 'wrap' | 'wrap-reverse' | 'nowrap' | CSS flex-wrap mapping |
gap | '0' | '1' | '2' | '3' | '4' | '5' | '6' | '8' | '10' | '12' | '16' | '20' | '24' | '32' | - | Gap spacing between elements |
className | string | - | Custom CSS classes |
Found something to improve?
Notice a bug, typo, or missing detail on this page? Help us make the documentation better by opening a GitHub issue.