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
ResponsiveValue<AlignItems>
direction
direction
The direction to stack the items.
StackDirection
column
divider
divider
If true
, each stack item will show a divider
ReactElement<any, string | JSXElementConstructor<any>>
isInline
isInline
If true
the items will be stacked horizontally.
boolean
false
justify
justify
Shorthand for justifyContent
style prop
ResponsiveValue<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
false
spacing
spacing
The space between each stack item
ResponsiveValue<string | number | (string & {})>
0.5rem
wrap
wrap
Shorthand for flexWrap
style prop
ResponsiveValue<FlexWrap>
Props#
align
align
Shorthand for alignItems
style prop
ResponsiveValue<AlignItems>
direction
direction
The direction to stack the items.
StackDirection
column
divider
divider
If true
, each stack item will show a divider
ReactElement<any, string | JSXElementConstructor<any>>
isInline
isInline
If true
the items will be stacked horizontally.
boolean
false
justify
justify
Shorthand for justifyContent
style prop
ResponsiveValue<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
false
spacing
spacing
The space between each stack item
ResponsiveValue<string | number | (string & {})>
0.5rem
wrap
wrap
Shorthand for flexWrap
style prop
ResponsiveValue<FlexWrap>