Docs
πŸ—οΈ ⏐ Components
Layout
Stack

Stack

Component that sets component spacing. It can be used to add space between components such as a menu.

Examples

Blocks

This component is used in the following Blocks:

Theme

This component uses the following default theme:

  • root{}(6 keys)
      Show all

Learn more about how to customize in the Theme documentation.

API

PropDescriptionDefault
denseIf true, the stack will be dense.
boolean
false
inlineIf true, the stack will be inline.
boolean
false
directionThe direction of the stack.
"row" | "column" | "rowReverse" | "columnReverse"
row
alignItemsHow the content is arranged inside the stack.
"start" | "end" | "center" | "stretch"
center
justifyContentHow the content is arranged inside the stack.
"start" | "end" | "center" | "spaceBetween"
start
themeTheme for the Stack.
StackTheme
refReference to the stack element.
LegacyRef<HTMLDivElement>