mljr-ui · showcase

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

v · sm
v · md
v · lg
h · sm
h · md
h · lg

Props

NameTypeOptionsDefault
axisenumv, hh
gapenumsm, md, lgmd