Basic usage
The HorizontalStack and VerticalStack components can be used to manage one-dimensional layout of immediate children along the horizontal or vertical axis respectively.
Spacing between children can be adjusted using the responsive gap prop. The value can be from the spacing scale, a number (converted to px) or a string with units.
Horizontal stack
Inline layout
Responsive gap
Vertical stack
Inline layout
Responsive gap
Props
HorizontalStackSystem Props
COMMONTYPOGRAPHYBORDERLAYOUTPOSITIONFLEXGRID- Learn More
| Name | Type | Description |
inline | boolean | - |
gradient | ResponsiveValue<TLengthStyledSystem, Required<Theme<TLengthStyledSystem>>> | - |
VerticalStackSystem Props
COMMONTYPOGRAPHYBORDERLAYOUTPOSITIONFLEXGRID- Learn More
| Name | Type | Description |
inline | boolean | - |
gradient | ResponsiveValue<TLengthStyledSystem, Required<Theme<TLengthStyledSystem>>> | - |