StackProps

Props both stacks accept on top of the primitive ones.

Source
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

MemberTypeDescription
gap?numberSpace between children, in px.
align?AlignCross axis. HStack centres by default; VStack leaves it to the parent.
justify?JustifyMain axis.
wrap?booleanLet children flow onto another line rather than shrink.

Related types