Skip to content
Thrum

Timeline

Events in order on a connecting line: an order's progress, a deploy history, an audit trail. Each event has a marker, a time, a title and a body. For a live stream of events that keeps growing use the activity feed; for steps a reader moves through use a stepper.

Install

npx shadcn@latest add @thrum-pro/timeline

This is a Pro component. The command works once your project has a licence key: set up Pro or see pricing.

Automatically installs icons check, triangle-alert and x from the icon set.

Props

PropTypeDefaultDescription
Timeline: align"start" | "alternate"Default "start"start keeps every event on one side of the line. alternate puts events left and right of a centre line when the timeline is 512 pixels wide or more, and falls back to start below that.
Timeline: revealbooleanDefault falseFade each event in and up 4 pixels when the timeline mounts, 40 ms apart and never more than 300 ms for the whole list.
Timeline: framedbooleanDefault falsePut the timeline in a rounded bordered card panel that adapts to frosted glass.
TimelineItem: status"default" | "success" | "warning" | "error"Default "default"Colours the marker and its ring, and gives an empty marker a shape and a word for screen readers: a tick and Done, a warning sign and Needs attention, a cross and Failed.
TimelineItem: pendingbooleanDefault falseAn event still to come: a dashed marker, a dashed line leading to it, muted text, and the word Pending for screen readers.
TimelineMarker: childrenReactNode–An icon at 14 pixels or a number, drawn instead of the dot or the status shape.
TimelineContentdiv props–Holds the time, the title and the body beside the marker.
TimelineTimeComponentProps<"time">–A time element in 12 pixel muted text. Put the machine-readable date in dateTime.
TimelineTitlediv props–The event's name, 14 pixels and medium weight. It wraps.
TimelineDescriptiondiv props–The body: a sentence, a link, a small card. It wraps.
classNamestring–On every part: extra classes, merged last.

Motion and sound

Motion

  • With reveal set, each event fades in and rises 4 pixels over 200 ms when the timeline mounts, 40 ms after the one before. The demo's Replay button mounts it again.
  • Without reveal nothing moves.
  • Reduced motion: every event is in place at once.

Sound

Silent. This component makes no sound.

Accessibility

  • It is an ordered list, so a screen reader announces the number of events and reads them in order.
  • Status is never colour alone: an empty marker draws a tick, a warning sign or a cross, and carries the word Done, Needs attention or Failed for screen readers. A pending event says Pending.
  • Times are time elements with a machine-readable dateTime.
  • The alternating layout is chosen by a container query on the timeline's own width. The reading order stays the list order on both sides.
  • Status colours come from the theme's success, warning and destructive colours and keep 3 to 1 against the page.

Source

SourcePro

The source comes with Pro

TypeScript source · Copy-paste ready · MIT-compatible for client projects · Includes all dependencies

Files and dependencies

Adds
components/ui/timeline.tsx
Packages
motion
Brings along
Chart foundationsMotion tokens
Icons
checktriangle-alertx

Changelog

  1. 1.0.0 · 2026-12-03First release.

Loading index…

Keyboard shortcuts

/Ctrl KSearch components, docs and actions
?Show this list
AAppearance studio
SSound on or off
MFull or reduced motion
TTheme: auto, light, dark
GSurface: solid or frosted
BBackdrop photograph (under glass)
CCorner radius: square to round
RReplay the demo, on a component page
DDraw new data, on a component page
←→HomeEndMove the cursor in a focused chart
EscClose a dialog, or leave a chart cursor