Components · Data Display · Card
Back to Card typesCard
Use for grouping related content into a bordered container, with an optional cover/media area or a footer row of action buttons - one Card component, controlled by properties, not a one-off box built from scratch each time.
Properties
Corner radius, size, title, body text and resting shadow are properties of the same component, not separate cards - change them below to check this card's types and states in the Live Preview.
Live Preview
All 3 types compared side by side, each in all 5 states - Rest, Hover, Selected, Disabled and Loading. One full matrix is rendered per selected combination of Corner radius and Size, with the current title, body text and shadow setting applied throughout.
When to use
Any time related content needs to be grouped into its own bordered container, distinct from the surrounding page.
Component Guide
Overview
Card groups related content into a bordered container, with an optional cover/media area or a footer row of action buttons - a general-purpose content grouping used across dashboards, listings, and profiles wherever a distinct, self-contained unit of information needs visual containment.
When to Use
- A dashboard summary tile - a self-contained block of related metrics or info.
- A product listing item or a team member profile - grouping an image, title, and details together.
- A settings section grouping or a blog post preview - any distinct, self-contained unit of content.
When Not to Use
- Content that's actually a single flat list of similar rows - use List instead - wrapping every row in its own Card adds unnecessary visual weight.
- A small piece of contextual detail tied to a specific trigger - use Popover instead of a full Card.
- Structured label/value data with no need for a border or media area - use Description.
Best Practices
- Keep one Card focused on one coherent unit of content - avoid stuffing unrelated information into the same card.
- Use the media/cover area only when a visual genuinely represents the card's subject, not as decoration.
- Keep footer actions limited to the one or two most relevant actions for that card's content.
Do and Don't
Do
Q1 revenue report
Summary of bookings, churn and expansion for the first quarter.
One subject per card, with a title short enough to scan and body copy that fits without truncating.
Don't
Q1 revenue report, churn analysis, and next quarter's hiring plan
Everything from this quarter and some notes on hiring too, plus a few other things worth mentioning here.
Stacking unrelated subjects into one card makes the title wrap past recognition and the card unclickable as a single unit - split it into two.
Accessibility
- When a whole card is clickable, it's implemented as a real link or button, not a div with only a visual hover style.
- Heading structure inside a card follows the page's real hierarchy (an h2/h3, not just bold text) so screen-reader navigation stays meaningful.
- Interactive elements inside a clickable card (like a footer button) remain independently reachable and don't get swallowed by the card's own click handler.
Related Components
List, Collapse, Description.
{
"component": "Card",
"category": "Data Display",
"summary": "Card groups related content into a bordered container, with an optional cover/media area or a footer row of action buttons - a general-purpose content grouping used across dashboards, listings, and profiles wherever a distinct, self-contained unit of information needs visual containment.",
"whenToUse": [
"A dashboard summary tile - a self-contained block of related metrics or info.",
"A product listing item or a team member profile - grouping an image, title, and details together.",
"A settings section grouping or a blog post preview - any distinct, self-contained unit of content."
],
"whenNotToUse": [
"Content that's actually a single flat list of similar rows - use List instead - wrapping every row in its own Card adds unnecessary visual weight.",
"A small piece of contextual detail tied to a specific trigger - use Popover instead of a full Card.",
"Structured label/value data with no need for a border or media area - use Description."
],
"bestPractices": [
"Keep one Card focused on one coherent unit of content - avoid stuffing unrelated information into the same card.",
"Use the media/cover area only when a visual genuinely represents the card's subject, not as decoration.",
"Keep footer actions limited to the one or two most relevant actions for that card's content."
],
"doAndDont": {
"do": "One subject per card, with a title short enough to scan and body copy that fits without truncating.",
"dont": "Stacking unrelated subjects into one card makes the title wrap past recognition and the card unclickable as a single unit - split it into two."
},
"accessibility": [
"When a whole card is clickable, it's implemented as a real link or button, not a div with only a visual hover style.",
"Heading structure inside a card follows the page's real hierarchy (an h2/h3, not just bold text) so screen-reader navigation stays meaningful.",
"Interactive elements inside a clickable card (like a footer button) remain independently reachable and don't get swallowed by the card's own click handler."
],
"relatedComponents": [
"List",
"Collapse",
"Description"
]
}