Card
Group related content. Build structured, scannable layouts.
Production deploy
Liveweb-app, commit 8f2c1ad on main
- Build time
- 42s
- Triggered by
- lucia@acmestudio.dev
- Finished
- 12 minutes ago
Installation
pnpm dlx nachui add cardAnatomy
Composition
Use the following composition to build a
Card:Variants
Outline
Cards with a prominent border and no shadow.
ci-deploy-key
Read and writeCreated Jan 9, last used 3 hours ago
sk_live_4f8a...c210Ghost
Transparent cards without border or shadow.
Notifications
How this workspace reaches you.
- Deploy failuresEmail and Slack
- New commentsSlack only
- Weekly usage reportEmail, every Monday
Compact
Cards with reduced padding for dense layouts.
Default density, billing page
Team plan
$49 per month, renews on Mar 14
12 of 20 seats used. Invoices go to billing@acmestudio.dev.
Compact density, sidebar summary
Team plan
$49 per month, renews on Mar 14
12 of 20 seats used. Invoices go to billing@acmestudio.dev.
API Reference
Card
| Prop | Type | Default | Description |
|---|---|---|---|
variant | "default" | "outline" | "ghost" | "default" | Visual variant of the card. |
as | React.ElementType | 'div' | Changes the root element of the card. |
className | string | — | Additional classes. |
children | React.ReactNode | — | Card content. |
Card.Header
| Prop | Type | Default | Description |
|---|---|---|---|
compact | boolean | false | Reduces top and bottom padding of the header. |
className | string | — | Additional classes. |
children | React.ReactNode | — | Header content. |
Card.Title
| Prop | Type | Default | Description |
|---|---|---|---|
as | 'h1' | 'h2' | 'h3' | 'h4' | 'h5' | 'h6' | 'h3' | HTML tag for the card title. |
className | string | — | Additional classes. |
children | React.ReactNode | — | Title content. |
Card.Description
| Prop | Type | Default | Description |
|---|---|---|---|
className | string | — | Additional classes. |
children | React.ReactNode | — | Description text. |
Card.Content
| Prop | Type | Default | Description |
|---|---|---|---|
compact | boolean | false | Reduces content padding. |
className | string | — | Additional classes. |
children | React.ReactNode | — | Main content of the card. |
Card.Footer
| Prop | Type | Default | Description |
|---|---|---|---|
align | 'start' | 'center' | 'end' | 'between' | 'start' | Controls horizontal alignment of the footer. |
compact | boolean | false | Reduces footer padding. |
className | string | — | Additional classes. |
children | React.ReactNode | — | Footer content. |
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.