Shorthand for alignItems
style prop
Stack
Stack is a layout component used to group elements together and apply a space between them.
Props#
align
align
SystemProps["alignItems"]
direction
direction
The direction to stack the items.
StackDirection
divider
divider
If true
, each stack item will show a divider
React.ReactElement
isInline
isInline
If true
the items will be stacked horizontally.
boolean
justify
justify
Shorthand for justifyContent
style prop
SystemProps["justifyContent"]
shouldWrapChildren
shouldWrapChildren
If true
, the children will be wrapped in a Box
with
`display: inline-block`, and the Box
will take the spacing props
boolean
spacing
spacing
The space between each stack item
SystemProps["margin"]
wrap
wrap
Shorthand for flexWrap
style prop
SystemProps["flexWrap"]
Props#
align
align
Shorthand for alignItems
style prop
SystemProps["alignItems"]
direction
direction
The direction to stack the items.
StackDirection
divider
divider
If true
, each stack item will show a divider
React.ReactElement
isInline
isInline
If true
the items will be stacked horizontally.
boolean
justify
justify
Shorthand for justifyContent
style prop
SystemProps["justifyContent"]
shouldWrapChildren
shouldWrapChildren
If true
, the children will be wrapped in a Box
with
`display: inline-block`, and the Box
will take the spacing props
boolean
spacing
spacing
The space between each stack item
SystemProps["margin"]
wrap
wrap
Shorthand for flexWrap
style prop
SystemProps["flexWrap"]