Skip to content
Work in progress. These docs describe Spawnite at launch, and some parts are still being built.

StackProps

The props a Stack and a Row take.

  • Pick<HTMLAttributes<HTMLDivElement>, "aria-label" | "role" | "style">
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.