Stack API
View componentThe full prop reference for the Stack component. Arranges children in a row or column with consistent spacing.
Import
tsx
import { Stack } from '@structyl/styled';Props
Stack
Flex stack layout.
| Prop | Type | Default |
|---|---|---|
| direction# | 'row' | 'row-reverse' | 'column' | 'column-reverse'Flex direction. | 'column' |
| spacing# | 'none' | 'xs' | 'sm' | 'md' | 'lg' | 0 | 1 | 2 | 3 | 4 | 5 | 6 | 8Gap between children. | 'md' |
| divider# | React.ReactNodeInserted between children. | — |
| alignItems# | 'start' | 'center' | 'end' | 'stretch' | 'baseline'Cross-axis alignment. | — |
| justifyContent# | 'start' | 'center' | 'end' | 'between' | 'around' | 'evenly'Main-axis alignment. | — |
| flexWrap# | 'nowrap' | 'wrap' | 'wrap-reverse'Flex wrapping behavior. | — |
| className# | stringAdditional Tailwind classes merged with the component defaults. | — |
Source code
If you didn't find what you need here, read the component implementation .