Esc
Documentation
On this page

Props

PropTypeDefaultDescription
content requiredPageNode | readonly PageNode[]NoneChild nodes
gapLayoutGap"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";

View the source on GitHub