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/timelineThis 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
| Prop | Type | Default | Description |
|---|---|---|---|
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: reveal | boolean | Default false | Fade 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: framed | boolean | Default false | Put 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: pending | boolean | Default false | An event still to come: a dashed marker, a dashed line leading to it, muted text, and the word Pending for screen readers. |
TimelineMarker: children | ReactNode | – | An icon at 14 pixels or a number, drawn instead of the dot or the status shape. |
TimelineContent | div props | – | Holds the time, the title and the body beside the marker. |
TimelineTime | ComponentProps<"time"> | – | A time element in 12 pixel muted text. Put the machine-readable date in dateTime. |
TimelineTitle | div props | – | The event's name, 14 pixels and medium weight. It wraps. |
TimelineDescription | div props | – | The body: a sentence, a link, a small card. It wraps. |
className | string | – | 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
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.0.0 · 2026-12-03First release.