gap | 0 | 0.5 | 1 | 1.5 | 2 | 3 | 4 | 5 | 6 | 8 | 10Spacing step (number literal): 0, 0.5, 1, 1.5, 2, 3, 4, 5, 6, 8, 10. Pass as a JSX number expression e.g. gap={4}, NOT a string like gap="4". |
|---|
padding | 0 | 0.5 | 1 | 1.5 | 2 | 3 | 4 | 5 | 6 | 8 | 10Inner padding on all sides, using the spacing scale (0, 0.5, 1, 1.5, 2, 3, 4, 5, 6, 8, 10). Matches the padding prop on Card, LayoutContent, and LayoutPanel. Pass as a JSX number expression e.g. padding={3}. |
|---|
paddingInline | 0 | 0.5 | 1 | 1.5 | 2 | 3 | 4 | 5 | 6 | 8 | 10Inline (horizontal) padding, using the spacing scale. Overrides padding on the inline axis when both are set. |
|---|
paddingInlineStart | 0 | 0.5 | 1 | 1.5 | 2 | 3 | 4 | 5 | 6 | 8 | 10Inline-start padding, using the spacing scale (left in LTR, right in RTL). Overrides paddingInline and padding on that edge only. |
|---|
paddingInlineEnd | 0 | 0.5 | 1 | 1.5 | 2 | 3 | 4 | 5 | 6 | 8 | 10Inline-end padding, using the spacing scale (right in LTR, left in RTL). Overrides paddingInline and padding on that edge only. |
|---|
paddingBlock | 0 | 0.5 | 1 | 1.5 | 2 | 3 | 4 | 5 | 6 | 8 | 10Block (vertical) padding, using the spacing scale. Overrides padding on the block axis when both are set. |
|---|
paddingBlockStart | 0 | 0.5 | 1 | 1.5 | 2 | 3 | 4 | 5 | 6 | 8 | 10Block-start (top) padding, using the spacing scale. Overrides paddingBlock and padding on that edge only. |
|---|
paddingBlockEnd | 0 | 0.5 | 1 | 1.5 | 2 | 3 | 4 | 5 | 6 | 8 | 10Block-end (bottom) padding, using the spacing scale. Overrides paddingBlock and padding on that edge only. |
|---|
isScrollable | boolean · default false |
|---|
width | SizeValueWidth of the stack container. Numbers are treated as pixels, strings are used as-is (e.g., '100%'). |
|---|
height | SizeValueHeight of the stack container. Numbers are treated as pixels, strings are used as-is (e.g., '100%'). |
|---|
maxWidth | SizeValueMaximum width of the stack container. Numbers are treated as pixels, strings are used as-is (e.g., '100%'). |
|---|
minHeight | SizeValueMinimum height of the stack container. Numbers are treated as pixels, strings are used as-is (e.g., '100%'). |
|---|
hAlign | 'start' | 'center' | 'end' | 'between' | 'around' | 'evenly'Horizontal (main-axis) alignment of items. |
|---|
vAlign | 'start' | 'center' | 'end' | 'stretch' · default 'stretch'Vertical (cross-axis) alignment of items. |
|---|
justify | 'start' | 'center' | 'end' | 'between' | 'around' | 'evenly'Main-axis alignment alias for hAlign. Mirrors CSS justify-content. |
|---|
align | 'start' | 'center' | 'end' | 'stretch'Cross-axis alignment alias for vAlign. Mirrors CSS align-items. |
|---|
wrap | 'nowrap' | 'wrap' | 'wrap-reverse' · default 'nowrap'Flex wrap behavior. |
|---|
as | ElementType · default 'div'HTML element to render as the stack container. |
|---|
children | ReactNode |
|---|
xstyle | StyleXStylesStyleX styles for layout customization (margins, positioning, sizing). Must be a stylex.create() value, not an inline style object like style={{}}. |
|---|