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.assets the element — useulwithlichildren when it's really a list.
Usage
ts
import { BlessStack } from "blessing-ui";API
Props
| Name | Type | Default | Description |
|---|---|---|---|
as | string | "div" | |
direction | "column" | "row" | "column" | |
gap | 1 | 2 | 3 | 4 | 6 | 8 | 12 | 16 | 3 | space token key |
align | "start" | "end" | "center" | "stretch" | "baseline" | "stretch" | |
justify | "start" | "end" | "center" | "between" | "around" | "start" | |
wrap | boolean | — |
Slots
| Name | Scope | Description |
|---|---|---|
default | — |