Timeline
Vertical activity feed — markers on a spine, tone per event, timestamp column.
Timeline is the activity feed: one item per event, a status marker on a
connecting spine, and a right-aligned timestamp slot. Purely
presentational — feed it ordered data and it stays an ordered list.
Installation
import { Timeline, TimelineItem } from "@iammikz/srui";
Usage
- 12:04DeployedBuild 128 is live on production.
- 12:01Tests passed412 tests, 0 failures.
- 11:58Build queuedmain @ a92e86b
- 09:30RollbackBuild 127 rolled back after error spike.
Props
Timeline accepts ol props. TimelineItem:
| Prop | Type | Default | Description |
|---|---|---|---|
title | ReactNode | — | The event (bold first line) |
description | ReactNode | — | Body copy |
time | ReactNode | — | Right-aligned timestamp |
icon | ReactNode | — | Custom marker instead of the dot |
variant | "default" | "info" | "success" | "warning" | "destructive" | "default" | Dot tone |
Accessibility
An ol/li list — screen readers announce the event order; the spine and
dots are decorative.
Upgrades over the PRUI original: the timestamp slot and per-item markers.