Card
Group related content and actions on a neutral surface.
Card groups related content and actions on a neutral surface. Its parts are structural and add no interactive behavior or ARIA relationships. Card.Title renders a div by default; choose a heading with as when the page needs one.
Basic usage#
Playground#
Manage billing and team seat limits.
Your team has 8 active seats out of 10 available. Upgrade to Enterprise for unlimited seats and SSO integration.
Anatomy#
Usage#
Variants and sizes#
Every variant has an outer border, and the header keeps the same appearance as the body. outline adds a top border to the footer. subtle adds the footer divider and a muted footer background. none keeps only the outer border and the anatomy spacing. The sm, md, and lg sizes change the density of the header, body, footer, title, and description together.
Compose the parts you need inside Card. Header and body provide horizontal insets, while the root spaces the sections. Direct children can still span the card’s full width.
Examples#
Structured content#
Semantic heading#
Card does not choose a heading level. Use as="h2" or another appropriate level for the surrounding page.
Full-bleed media#
Place media directly inside Card to span its width. Apply clipping on the root only if the composition needs it.
Header action#
Custom header#
Props#
Card#
Props for Card. Renders a <div> element by default.
Header#
Renders a <div> element by default.
Title#
Renders a <div> element by default.
Description#
Renders a <p> element by default.
Action#
Renders a <div> element by default.
Body#
Renders a <div> element by default.
Footer#
Renders a <div> element by default.