Skip to main content
  1. Docs
  2. Components
  3. Data display

Timeline

What happened, newest first: a user's recent activity, a payment's history. Failures take the danger colour.

Import
@qeetrix/react/experimental
Status
ExperimentalSince 0.0.6
Renders
<ol>Server-rendered
Tested
WCAG 2.2 AAaxe on every pull request

01

When to use

Use it for
  • A user's recent activity, on their page.
  • A payment's or a delivery's history.
Not for
  • The full audit log, to search and filterTable
  • Steps still to takeSteps

02

Anatomy

  1. 1timeline-group-label<span>The group's heading: the day.
  2. 2timeline-marker<span>The icon, aria-hidden; a line joins them.
  3. 3timeline-title<span>What happened.
  4. 4timeline-description<span>Where, by whom, or how.
  5. 5timeline-time<time>When, with dateTime for machines.

03

Do and don't

Newest first
DoThe latest at the top, where it's looked for.
Don'tOldest first: today's events at the bottom of a long list.
Say what happened
DoA past-tense title a person reads: Signed in with a passkey.
Don'tThe event's code: nobody reads auth.login.success.

04

Content

  • Titles in the past tense, sentence case: Role changed to Admin.
  • Descriptions say where, by whom or how: By Rahul Verma.
  • Times as people read them; dateTime for the exact instant.
Next — TimelineAPI