Alternatives
- Inline — For horizontal layouts, with fluid child widths that may wrap
- Columns — For horizontal layouts, with prescriptive and exact child widths
- Flex — For custom layouts
- FieldStack — For applying consistent vertical spacing to form fields
Usage
Gap
The spacing between children can be adjusted using the gap
prop.
Horizontal alignment
Items can be aligned horizontally using the align
prop.
Dividers
Use the dividers
property to render a Divider between each
element in the Stack.
Nesting
Nest Stack components to create more complex white space rules.