Display
Card
A contained group of content and actions.
Anatomy
A card rests on a 1px border with no shadow. CardHeader holds the title and description, plus a CardAction in the top-right corner. Content and footer follow, spaced by 16px.
Team plan
Billed monthly. Renews on 14 December 2026.
$48 / month
- 12 seats included
- Unlimited projects
- Priority support
When to use
- Group related content and its actions into one scannable unit: a plan, a project, a setting.
- A grid of links to other pages: use the interactive variant.
Not for: every block on a page (use spacing and headings), or content that needs to float above the page (use a popover or dialog; those get shadows).
Interactive
variant="interactive" with asChild turns the card into a link. On hover it lifts 2px and the border strengthens; there is still no shadow. Make the whole card the link so there is one big target.
Variants and concentric radii
A nested corner is the outer radius minus the gap between them. The inset variant does this for an 8px gap (--ui-card-gap).
Default
A 1px border and no shadow.
Muted
A quiet well for secondary content.
Inset
Nested in a card with an 8px gap; its corners follow the outer ones.
API
Card
| Prop | Type | Default | Description |
|---|---|---|---|
| variant | 'default' | 'interactive' | 'muted' | 'inset' | 'default' | Border and fill treatment. |
| asChild | boolean | false | Render the child (e.g. a Next.js Link) with card styles. |
| ...props | HTMLAttributes<HTMLDivElement> | — | Forwarded, including ref and className. |
CardTitle
| Prop | Type | Default | Description |
|---|---|---|---|
| as | 'h2' | 'h3' | 'h4' | 'h5' | 'h6' | 'div' | 'h3' | Heading level. Use div when the card is a link. |
CardHeader, CardDescription, CardAction, CardContent and CardFooter take native props and forward ref. All of it is Server Component–safe.
Accessibility
- A card has no role of its own; it is a container. Choose the CardTitle heading level that fits the page outline.
- An interactive card is one link: its accessible name is the text inside. Do not nest buttons or links in it.
- Keyboard focus shows a 3px ring and a stronger border.
Motion
- Hover lift (2px) on the smooth spring, only on devices with a fine pointer; press scales to .985.
- Reduced motion: no lift or press scale; the border colour still changes.