StackProps
Props both stacks accept on top of the primitive ones.
type StackProps = {
/** Space between children, in px. */
gap?: number
/** Cross axis. `HStack` centres by default; `VStack` leaves it to the parent. */
align?: Align
/** Main axis. */
justify?: Justify
/** Let children flow onto another line rather than shrink. */
wrap?: boolean
}API reference
| Member | Type | Description |
|---|---|---|
gap? | number | Space between children, in px. |
align? | Align | Cross axis. HStack centres by default; VStack leaves it to the parent. |
justify? | Justify | Main axis. |
wrap? | boolean | Let children flow onto another line rather than shrink. |