Stack
Vertical stack with gap.
On this page
Props
| Prop | Type | Default | Description |
|---|---|---|---|
content required | PageNode | readonly PageNode[] | None | Child nodes |
gap | LayoutGap | "md" | Spacing between items |
Example
ts
Stack({
gap: "sm",
content: [
Badge({ label: "First" }),
Badge({ label: "Second" }),
Badge({ label: "Third" }),
],
})Supporting types
LayoutGap
export type LayoutGap = "none" | "sm" | "md" | "lg";