Layout Components¶
Surfaces and spacing primitives. Use these to group or separate content. For arranging items horizontally/vertically, use the row and col layout primitives instead of components.
All components below accept the base props in addition to those listed.
Prop tables in this file are auto-generated from the live zod schemas by
npm run gen:docs. Hand-editing inside<!-- gen:props -->blocks will be overwritten.
container¶
A neutral rectangular surface with optional padding. Useful when you need a wrapper with visible bounds.
No component-specific props — accepts base props only.
card¶
Titled surface with optional body text — the default "content card" shape.
| Prop | Type | Description |
|---|---|---|
title |
string | Card heading |
body |
string | Card body text |
panel¶
A card-like surface with a distinct header bar — better for grouping a heading with arbitrary content.
| Prop | Type | Description |
|---|---|---|
header |
string | Panel header text |
divider¶
A thin horizontal or vertical rule. Great for visually breaking sections.
| Prop | Type | Description |
|---|---|---|
orientation |
"horizontal" | "vertical" |
Direction of the rule |
spacer¶
Invisible gap — forces spacing where gap: on the parent row/col isn't enough.
| Prop | Type | Description |
|---|---|---|
size |
number | Gap size in pixels |