cnippet/ui
  1. ui
  2. data
  3. timeline

data

Timeline

Vertical list of events joined by a line, for activity feeds, audit logs, deployment history and order tracking, with dot, icon or avatar markers. Copy-paste ready.

Installation

Usage

Anatomy

Good to know

  • Every indicator fills the same square, set by --timeline-indicator on Timeline (default --spacing(7)), so dots, icons and avatars all sit on one line. Make it smaller for compact lists: className="[--timeline-indicator:--spacing(4)]".
  • TimelineIndicator is hidden from screen readers. Put any status it shows (such as "Failed") in the text as well.
  • The last item has no line after it.
  • Give TimelineTime a machine-readable dateTime when the visible text is relative, such as "2 hours ago".
  • <strong> inside TimelineTitle is medium weight, for the actor's name in activity feeds.

API Reference

All parts take the props of their HTML element. TimelineIndicator renders a dot when it has no children, and a bordered circle around them when it does.

Examples

Deployment history

Status icons in tinted indicators.

Order tracking

Compact dots with the latest step highlighted.