Skip to content

Stack ​

Flex row / column with token gap

Spacing children in a row or column with token gaps, so layouts don't need one-off margins. For a page grid use CSS grid; Stack is for small groups.

Basic
space-between
  • direction (column by default), gap (a space token: 1–16), align, justify, wrap.
  • as sets the element — use ul with li children when it's really a list.

Usage ​

ts
import { BlessStack } from "blessing-ui";

API ​

Props

NameTypeDefaultDescription
asstring"div"
direction"column" | "row""column"
gap1 | 2 | 3 | 4 | 6 | 8 | 12 | 163space token key
align"start" | "end" | "center" | "stretch" | "baseline""stretch"
justify"start" | "end" | "center" | "between" | "around""start"
wrapboolean—

Slots

NameScopeDescription
default—

Released under the MIT License. Character names and artwork belong to their owners.