Frame
A structured container that nests panels, like a card inside a card.
Workspace
Plan and usage for the acme team.
Pro planActive
Monthly usage
4,210 of 10,000 requests
Installation
pnpm dlx nachui add frameAnatomy
The frame is a muted surface and each panel is a card sitting on it, with a smaller radius so the corners stay concentric. Panels take any content, including a
Card or another Frame, which is how you get the card inside a card look.Composition
Use the following composition to build a
Frame:Variants
Stacked
stacked removes the gaps and connects consecutive panels into one block with shared borders. Add dense to strip the panel padding and control it from your own content, useful for list rows.Services
Status across regions, updated every minute.
auth-serviceus-east-1
Healthyregistry-apius-east-1
Healthyrag-workereu-west-2
Degradedingest-croneu-west-2
StoppedAPI Reference
Frame
| Prop | Type | Default | Description |
|---|---|---|---|
variant | 'default' | 'ghost' | 'default' | ghost drops the outer border and background |
spacing | 'sm' | 'default' | 'lg' | 'default' | Padding of the frame and gap between panels |
stacked | boolean | false | Connects consecutive panels with shared borders |
dense | boolean | false | Removes the default panel padding |
className | string | - | Additional CSS classes |
Frame.Title
| Prop | Type | Default | Description |
|---|---|---|---|
as | 'h2' | 'h3' | 'h4' | 'h5' | 'h6' | 'h3' | Heading level |
className | string | - | Additional CSS classes |
Frame.Header, Frame.Description, Frame.Panel, Frame.Footer
Layout parts of the frame. Each accepts
className and standard div props.Found something to improve?
Notice a bug, typo, or missing detail on this page? Help us make the documentation better by opening a GitHub issue.