Card

Container for grouping related content

Category: display · WCAG 2.2-AA · container, layout, surface

Variants

Props

PropTypeDefaultDescription
actionsReactNodeCardHeader only — trailing content pinned to the inline-end (overflow menu, badge, link). The header is a column by default, so `justify-content: space-between` alone does nothing; this is how you get the title-left / action-right dashboard card.
variant'default' | 'outlined' | 'elevated'defaultSelects the visual style variant.
padding'none' | 'sm' | 'md' | 'lg'mdInner padding of the component.

Design tokens

When to use

When not to use

How to build an accessible Card in React →

Examples

Basic card

<Card>
  <CardHeader><CardTitle>Title</CardTitle></CardHeader>
  <CardContent>Content here</CardContent>
</Card>

Related components

← Back to docs