Browse the docs
Display / Cards

Cards

Three paper objects for three jobs: a ticket stub for queue items, a taped unit card for people, a sticky note for quick context.

Server ComponentWCAG AASince v0.1
Ticket #1042, 9:14 AM

Printer on 3F jams on every second page

Medium
Open

Mobile 2

PO2 Jun Reyes, 2 riders
En route6min away

Change every prop live in the playground.

Props

TicketCard

PropTypeDefaultWhat it does
title requiredReactNode——
childrenReactNodenoneTags, assignee and so on.
headingLevel2 | 3 | 43Heading level of the title.
metaReactNodenoneSmall line above the title, e.g. "Ticket #1042, 9:14 AM".
stubReactNodenoneThe tear-off stub, e.g. "Open".
tiltnumbernone—

Also takes every attribute of <article> (276 more, e.g. onClick, className, aria-*).

UnitCard

PropTypeDefaultWhat it does
name requiredReactNode——
avatarReactNodenoneUsually an <Avatar>.
childrenReactNodenoneRows: status and ETA, actions.
headingLevel2 | 3 | 4none—
subtitleReactNodenone—
tiltnumbernone—

Also takes every attribute of <article> (277 more, e.g. onClick, className, aria-*).

StickyNote

PropTypeDefaultWhat it does
children requiredReactNode——
footerReactNodenoneSmall line at the bottom, e.g. "Added by dispatcher Ana, 9:06 AM".
tiltnumbernone—
tone"mint" | "mustard" | "pink"mustardPaper color of the note.

Also takes every attribute of <aside> (277 more, e.g. onClick, className, aria-*).

Use it well

DoKeep one job per card: a queue item, a person, or a note.
Don'tNest cards inside cards. Paper on paper on paper gets hard to read.

Accessibility

  • Tickets and unit cards are <article>s with real headings (level 3 by default).
  • Sticky notes are <aside>s.
Five stamps!

All aboard.

You took the whole tour. Here's Holo Pip, a foil sticker for riders who finish. It's in your playground tray now, for good.