Skip to content

CardVertical

A course card with the image on top and the title, progress and metadata below, optionally with a favorite or overflow action.

Maturity
beta
Links
Storybook · Figma: CardVertical · Figma: CardVertical.Root · Figma: CardVertical examples · Spec source · Usage source

Anatomy

Designing Calm Interfaces

Patternfavorite-savedsize="lg"

Creative Acts for Curious People

DetailMeta

Designing Calm Interfaces

Storytelling with Data

DetailAction
DetailTitle

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

A person working on a laptop
Lifecyclewith-progress

Creative Acts for Curious People

A person working on a laptop
Lifecyclecompleted

Creative Acts for Curious People

Contentplaceholder

Creative Acts for Curious People

A person working on a laptop
App datafavorite-pressed

Props

PropTypeDefaultOptions
thumbnailSrcstring——
thumbnailAltstring""—
titlestring——
hrefstring——
durationstring——
certifiedbooleanfalse—
progressnumber (0–100)——
sizeenum"lg"smlg
actionelement—CardVertical.FavoriteCardVertical.Menu

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
PartPropDefaultOptions
CardVertical.Rootsize"lg"smlg
children——
CardVertical.Mediasrc——
alt""—
children—CardVertical.Action
CardVertical.Actionchildren—CardVertical.FavoriteCardVertical.Menu
CardVertical.Favoritepressed——
defaultPressedfalse—
onPressedChange——
CardVertical.Menuitems——
onSelect——
CardVertical.Progressvalue——
CardVertical.Bodychildren——
CardVertical.Titleas"h3"—
href——
children——
CardVertical.Metachildren——
CardVertical.Durationchildren——

Tokens

StateTokens
Defaultspace.stack.sm100%relative
size="lg"size.card.min.lg
size="sm"size.card.min.sm
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.