CardVertical
A course card with the image on top and the title, progress and metadata below, optionally with a favorite or overflow action.
Anatomy
Not marked: MenuPanel (when the menu is open). DropdownMenu renders nothing until the trigger opens it, and Menu has no open prop. Covered by CardVertical.a11y.test.tsx.
States
Creative Acts for Curious People
with-progressCreative Acts for Curious People
completedCreative Acts for Curious People
placeholderCreative Acts for Curious People
favorite-pressedProps
| Prop | Type | Default | Options |
|---|---|---|---|
thumbnailSrc | string | — | — |
thumbnailAlt | string | "" | — |
title | string | — | — |
href | string | — | — |
duration | string | — | — |
certified | boolean | false | — |
progress | number (0–100) | — | — |
size | enum | "lg" | |
action | element | — |
Composition props
Props of CardVertical.Root and its parts, for building the component from parts instead of the preset (ADR-023).
Show 18 props on 10 parts
| Part | Prop | Default | Options |
|---|---|---|---|
CardVertical.Root | size | "lg" | |
children | — | — | |
CardVertical.Media | src | — | — |
alt | "" | — | |
children | — | ||
CardVertical.Action | children | — | |
CardVertical.Favorite | pressed | — | — |
defaultPressed | false | — | |
onPressedChange | — | — | |
CardVertical.Menu | items | — | — |
onSelect | — | — | |
CardVertical.Progress | value | — | — |
CardVertical.Body | children | — | — |
CardVertical.Title | as | "h3" | — |
href | — | — | |
children | — | — | |
CardVertical.Meta | children | — | — |
CardVertical.Duration | children | — | — |
Tokens
| State | Tokens |
|---|---|
| Default | |
size="lg" | |
size="sm" | |
| Default | |
| hover | |
| focus-visible | |
| Default | |
| action-hover | |
| action-active | |
| favorite-pressed | |
| Default | |
| Default | |
| hover | |
| focus-visible | |
| Default | |
token.name- Token this component sets
token.name- Token from the component the part is built on; hover it for which
value- Raw value with no token; hover it for the reason
Every component follows ADR-025, ADR-026 and ADR-028(states, prop vocabulary, focus indicator); they are not repeated per component.