Card
Bring a title, content, media, and actions together on one surface.
Basic usage
Combine Card.Header, Card.Content, and Card.Footer as the content needs. Choose the Card.Title level to match the page hierarchy.
In review
API
Key props and defaults.
| Prop | Values and behavior | Default |
|---|---|---|
Root.variant | outline, soft, elevated | outline |
Root.as | div, article, section | div |
Title.as | h1, h2, h3, h4, h5, h6 | h2 |
Title.size | 1, 2, 3, 4, 5, 6 | 5 |
Footer.variant | simple, divided | simple |