<FodStack Direction="StackDirection.Column" Gap="Spacing.Spacing16">
<div>Item 1</div>
<div>Item 2</div>
<div>Item 3</div>
</FodStack>Stack
A flexible layout component for horizontal or vertical arrangement of child components. Supports gap spacing, alignment, justification, wrapping, and RTL layouts.
Quick Start
Basic vertical stack with gap spacing between items.
Direction
Stack items vertically (column) or horizontally (row).
Column (Default)
Row
<FodStack Direction="StackDirection.Column">Column</FodStack>
<FodStack Direction="StackDirection.Row">Row</FodStack>Gap Variations
Control spacing between items using spacing tokens.
None
4px
8px
16px
24px
32px
<FodStack Gap="Spacing.None">No gap</FodStack>
<FodStack Gap="Spacing.Spacing4">4px gap</FodStack>
<FodStack Gap="Spacing.Spacing8">8px gap</FodStack>
<FodStack Gap="Spacing.Spacing16">16px gap</FodStack>
<FodStack Gap="Spacing.Spacing24">24px gap</FodStack>
<FodStack Gap="Spacing.Spacing32">32px gap</FodStack>Alignment
Control cross-axis alignment with the Align property.
Align: Stretch
<FodStack Align="StackAlign.Stretch">Stretch (default)</FodStack>
<FodStack Align="StackAlign.Start">Align start</FodStack>
<FodStack Align="StackAlign.Center">Align center</FodStack>
<FodStack Align="StackAlign.End">Align end</FodStack>
<FodStack Align="StackAlign.Baseline">Align baseline</FodStack>Justification
Control main-axis distribution with the Justify property.
Justify: Start
<FodStack Justify="StackJustify.Start">Justify start</FodStack>
<FodStack Justify="StackJustify.Center">Justify center</FodStack>
<FodStack Justify="StackJustify.End">Justify end</FodStack>
<FodStack Justify="StackJustify.SpaceBetween">Space between</FodStack>
<FodStack Justify="StackJustify.SpaceAround">Space around</FodStack>
<FodStack Justify="StackJustify.SpaceEvenly">Space evenly</FodStack>Wrap Behavior
Enable wrapping for row stacks when items exceed container width.
Wrap Disabled (overflow)
Wrap Enabled
<FodStack Direction="StackDirection.Row" Wrap="false">
Items overflow container
</FodStack>
<FodStack Direction="StackDirection.Row" Wrap="true">
Items wrap to next line
</FodStack>RTL Support
Stack automatically adapts to RTL (right-to-left) layouts. Row direction reverses in RTL context.
LTR (default)
RTL
<div dir="ltr">
<FodStack Direction="StackDirection.Row">
<div>First</div>
<div>Second</div>
</FodStack>
</div>
<div dir="rtl">
<FodStack Direction="StackDirection.Row">
<div>First</div>
<div>Second</div>
</FodStack>
</div>API Reference
FodStack component properties and their descriptions.
