Stack

Stack arranges items in a row or column with consistent spacing. Use StackItem when an individual child needs to fill available space, scroll, or override cross-axis alignment.

ParameterDescription
directionStack direction.
justifyMain-axis alignment.
alignCross-axis alignment.
wrapWrapping behavior.
gapSpace between child elements.
ifConditional rendering expression.

Usage

xml
<Stack direction="horizontal" align="center">
$order.number
<StackItem size="fill">Order details</StackItem>
<Button>Open</Button>
</Stack>

StackItem

Stack arranges items in a row or column with consistent spacing. Use StackItem when an individual child needs to fill available space, scroll, or override cross-axis alignment.

ParameterDescription
sizeComponent size.
isScrollableSets the isScrollable property.
crossAlignSelfSets the crossAlignSelf property.
ifConditional rendering expression.
xml
<Stack direction="horizontal" align="center">
$order.number
<StackItem size="fill">Order details</StackItem>
<Button>Open</Button>
</Stack>