Card
v1.0.5Updated 28 Sept 2026Generic container with subtle border, padding, and slots for header / title / description / content / footer. Adds elevation levels, hover lift, selected state, tonal tint, and a loading overlay for richer surface compos
Preview
Live · 15 stories▸Why this is recommendedcontainerpanelboxsurface+2
The default, out-of-the-box Card.
- ✓Dashboard tiles
- ✓Form sections
- ✓Content groupings
- ✓Selectable tiles
- ✓Marketing / pricing cards
- ✓A settings page built from cards, where each card is a section that needs its own heading
- Composable slots
- Consistent spacing
- Bordered surface
- Composable slots (header / media / body / footer)
- Elevation 0-5
- Hover lift
- Selected state
- Tonal tint variants
- Loading overlay
- Clickable variant
- i18n: labels prop overrides the loading-overlay screen-reader announcement (DEFAULT_CARD_LABELS)
- CardTitle can render a real heading (headingLevel) so a page of cards has a screen-reader heading outline
- ✕Layout shells (use AppShell)
- ✕Single inline alerts (use Alert)
- ✕Trivial framing (use Paper)
Install
Ask your agent, or call the MCP tool directly. The resolved bundle is written into your project.
Usage
Tick variants in the left menu — each adds a tab with that variant’s real story source, the same code the preview above renders.
Props
elevationShadow elevation
—hoverLiftAnimate elevation on hover
—selectedSelected state ring
—toneTonal tint
—loadingShow loading overlay
—labelsOverride built-in UI strings (loading-overlay screen-reader announcement) for i18n; English defaults exported as DEFAULT_CARD_LABELS
—headingLevelOn CardTitle: render the title as a real h1..h6 instead of the default div, with an identical class list so nothing restyles. Pass it when a card is a page section (a settings screen built of cards) so the page has a heading outline and the title is reachable by getByRole("heading"). Omitted keeps the historic div. MCP feedback fb_138ab81d.
—Every tonal component shares the same tone × emphasis API, so the pair looks identical across Button, Badge, Alert and more.