Stack
Overview
Use this component to stack other components with spacing, alignment and flex direction.
When to consider an alternative
t.b.d.
Component
Default
Flex Direction
Spacing
Align Items
Justify Content
Properties
Default
| Property | Type | Required | Default | Description |
|---|---|---|---|---|
| utilClassNames | String | false | - | |
| children | Node | false | - | |
| flexDirection | Enum 'column' │ 'default' | false | - | Exported as `Stack.spacing.small` etc. |
| spacing | Enum 'small' │ 'medium' │ 'default' | false | - | Exported as `Stack.spacing.small` etc. |
| alignItems | Enum 'end' │ 'baseline' │ 'inherit' │ 'initial' │ 'start' │ 'center' │ 'revert' │ 'revertLayer' │ 'unset' │ 'stretch' │ 'flexEnd' │ 'flexStart' │ 'normal' │ 'selfEnd' │ 'selfStart' | false | - | Exported as `Stack.alignItems.end` etc. |
| justifyContent | Enum 'end' │ 'inherit' │ 'initial' │ 'start' │ 'left' │ 'center' │ 'right' │ 'revert' │ 'revertLayer' │ 'unset' │ 'spaceAround' │ 'spaceBetween' │ 'spaceEvenly' │ 'stretch' │ 'flexEnd' │ 'flexStart' │ 'normal' | false | - | Exported as `Stack.justifyContent.end` etc. |