Card
Card component met varianten en interactie states
Card
Cards groeperen gerelateerde content. Twee varianten: Default en Interactive.
Default Card
Interactive Card
Anatomy
- Container —
rounded-m,border-outline,shadow-low,bg-surface-primary - Padding —
p-6(24px) standaard - Titel —
text-title,font-semibold,text-label-primary - Beschrijving —
text-body,text-label-secondary,mt-2 - Footer (optioneel) —
mt-4,pt-4,border-t border-outline
Token Mapping
| Property | Token |
|---|---|
| Background | --color-bg-primary |
| Border | --color-outline-default |
| Border radius | --radius-m |
| Shadow | --shadow-low → --shadow-md (hover) |
| Padding | --space-12 (24px) |
| Transition | --transition-fast |
Accessibility
- Interactive cards: gebruik
<a>of<button>, nooit<div>metonClick - Focus state:
focus-visible:ring-2 focus-visible:ring-outline-active