Card
A surface with consistent anatomy and padding; width and outer margins are up to you.
Pro plan
Billed monthly, cancel anytime.
Installation
Run it from the root of a project already set up with zunoui init.
npx zunoui@latest add cardDependencies
What add card installs alongside the component. The CLI skips any you already have in a compatible version.
ZUNO registry
@zuno/utils
Examples
1 examples · 1 componentPro plan
Billed monthly, cancel anytime.
Full anatomy
Header, content and footer with actions.
API reference
Forwards props and ref to the container element; it only adds composition utilities.
| Prop | Type | Default |
|---|---|---|
CardContainer with a border and card surface. | div | — |
CardHeaderHeader with title and description. | div | — |
CardTitleCard title. | h3 | — |
CardDescriptionSecondary supporting text. | p | — |
CardContentMain body. | div | — |
CardFooterActions or metadata at the bottom. | div | — |
Accessibility
Use CardTitle as a heading for the document hierarchy; adjust the level with className or your own element.
Card is a presentational surface: it does not capture focus or add roles. Place accessible controls inside it.