Display
Timeline
What happened, newest first.
Deploy activity
Events in order along one connector line, split by day with TimelineGroup. Status tones colour the marker; the text stays neutral.
Today
- Deployed to production
a3f9c21“Fix invoice rounding” went live in 48 s. - Preview build failed
Type error in
billing/summary.tsx. Retried automatically. - ARAmina Rahman requested a review
Pull request #482 Review
Yesterday
- Rollback to v2.14.3
Error rate rose above 2% after v2.14.4, so the release was reverted.
- Deployed v2.14.4 to staging
- Environment variable updated
STRIPE_WEBHOOK_SECRET was rotated by Tomás Herrera.
When to use
- An activity feed, audit log or order history where the sequence matters.
- Status that changes over time: build and deploy steps, shipment tracking.
Not for steps the person has to complete (use a stepper) or for unordered facts (use a description list).
Markers
A dot is the default. Pass an Icon as marker for a tinted circle, or an Avatar size="xs" with markerType="avatar" to show who did it.
- Delivered
Left with the concierge at 14 Harbour Row.
- Out for delivery
- LKPacked by Lena Kowalski
- Order placed
3 items, $128.40 charged to Visa ending 4242.
API
TimelineItem
| Prop | Type | Default | Description |
|---|---|---|---|
| tone | 'default' | 'success' | 'warning' | 'destructive' | 'info' | 'default' | Marker colour. |
| marker | ReactNode | — | Replaces the dot: an Icon or a 24px Avatar. |
| markerType | 'icon' | 'avatar' | 'icon' | Icons are put in a tinted circle; avatars are kept as they are. |
TimelineGroup
| Prop | Type | Default | Description |
|---|---|---|---|
| label | ReactNode | — | The day or section heading. |
| as | 'h2' | 'h3' | 'h4' | 'h5' | 'h6' | 'div' | 'h3' | Heading element. |
Timeline is an <ol>. TimelineHeader lays the title and time on one line; TimelineTime is a <time> (pass dateTime); TimelineTitle and TimelineDescription are text. Every part forwards ref and className and is Server Component–safe.
Accessibility
- A real ordered list: screen readers announce “list, 6 items”. Groups nest a labelled list inside one item.
- Times use the <time> element with an ISO dateTime.
- Status is never colour alone: put the outcome in the title (“Deploy failed”) as well as the tone.
- Dot markers are decorative; icon markers should be decorative too, so name the state in text.
Motion
- Each item rises in once on mount.
- Reduced motion: items appear without movement.