Shorthand for alignItems style prop
Stack
Stack is a layout component used to group elements together and apply a space between them.
Props#
align
alignSystemProps["alignItems"]direction
directionThe direction to stack the items.
StackDirectiondivider
dividerIf true, each stack item will show a divider
React.ReactElementisInline
isInlineIf true the items will be stacked horizontally.
booleanjustify
justifyShorthand for justifyContent style prop
SystemProps["justifyContent"]shouldWrapChildren
shouldWrapChildrenIf true, the children will be wrapped in a Box with
`display: inline-block`, and the Box will take the spacing props
booleanspacing
spacingThe space between each stack item
SystemProps["margin"]wrap
wrapShorthand for flexWrap style prop
SystemProps["flexWrap"]Props#
align
alignShorthand for alignItems style prop
SystemProps["alignItems"]direction
directionThe direction to stack the items.
StackDirectiondivider
dividerIf true, each stack item will show a divider
React.ReactElementisInline
isInlineIf true the items will be stacked horizontally.
booleanjustify
justifyShorthand for justifyContent style prop
SystemProps["justifyContent"]shouldWrapChildren
shouldWrapChildrenIf true, the children will be wrapped in a Box with
`display: inline-block`, and the Box will take the spacing props
booleanspacing
spacingThe space between each stack item
SystemProps["margin"]wrap
wrapShorthand for flexWrap style prop
SystemProps["flexWrap"]