Stack
Flex column (v) or row (h) with configurable gap, align, and justify.
layout stack
Controls
axis
gap
Current props
axis: ""gap: ""
Usage
layout.Stack(layout.StackProps{Axis: "h", Gap: "md"},
primitive.Button(primitive.ButtonProps{Variant: token.Primary}, g.Text("A")),
primitive.Button(primitive.ButtonProps{Variant: token.Outline}, g.Text("B")),
)All combinations (6)
Enum controls only · bool and text use defaults
Props
| Name | Type | Options | Default |
|---|---|---|---|
axis | enum | v, h | h |
gap | enum | sm, md, lg | md |