Stack.
A spacing-aware flex layout primitive.
Stack
The preview uses the actual shared component, including your current theme, rounding, border and motion preferences.
Props & API reference
Parameters available in the shared component, including value types, requirements and accepted options.
| Parameter | Type | Required | Default | Possible values | Description |
|---|---|---|---|---|---|
children | ReactNode | No | — | — | Flex row or column children. |
gap | number | No | 3 | — | Spacing units (4px each). |
direction | "row" | "column" | No | column | row · column | Layout direction. |
align | CSSProperties['alignItems'] | No | stretch | stretch · center · start · end · baseline | CSS flex alignment. |
className | string | No | — | — | Custom class. |