Components
Timeline
Render a chronological sequence of events as a vertical or horizontal timeline.
Timeline lays out an ordered list of events with connecting lines and status
dots — use it for audit logs, release histories, order tracking, or any "what
happened when" view. Pass an array of items, each with a title and optional
description, timestamp, and tone (which colors the dot). Switch between a
stacked vertical layout and a scrollable horizontal strip with orientation.
Example
Preview
- Planned
Primitive plan created
- Built
Primitive lab route added
import { Timeline } from '@officina/ui';
function ReleaseHistory() {
return (
<Timeline
items={[
{ id: 'planned', title: 'Planned', description: 'Spec approved', timestamp: 'Mon' },
{ id: 'built', title: 'Built', description: 'Merged to main', tone: 'success' },
]}
/>
);
}API
| Prop | Type | Default | Description |
|---|---|---|---|
| items* | TimelineItem[] | — | |
| orientation | enum | vertical |