StackProps
The props a Stack and a Row take.
Extends
Section titled “Extends”Pick<HTMLAttributes<HTMLDivElement>,"aria-label"|"role"|"style">
Properties
Section titled “Properties”| Property | Type | Default value | Description |
|---|---|---|---|
align? |
"end" | "center" | "start" | "baseline" | "stretch" | Align |
Align.Center |
Where the children stand across the line. Centred, as a Panel and SwiftUI’s stacks centre theirs. Align.Stretch stretches a child that sets no size of its own across the line. |
children |
ReactNode |
undefined |
- |
className? |
string |
undefined |
An override that shows in the diff, merged over the props’ classes. One element and no parts, so there is no classNames. |
gap? |
"base" | "none" | "xs" | "sm" | "lg" | "xl" | Gap |
Gap.Base |
The space between the children. |
justify? |
"end" | "center" | "start" | "around" | "between" | "evenly" | Justify |
Justify.Start |
Where the children stand along the line. It moves them only where the line is longer than they are, such as a Row given a width. |