Show events ordered over time.
123456789| Prop | Type | Default | Description |
|---|---|---|---|
events | TimelineEvent[] | — | Array of event objects (required) |
orientation? | "vertical" | "horizontal" | "vertical" | Timeline orientation (optional) |
showTimestamps? | boolean | true | Show timestamp for each event (optional) |
className? | string | — | Additional CSS classes (optional) |
TimelineEvent interface:
id – string. Unique identifier (required)title – string. Event title (required)description? – string. Event description (optional)timestamp? – string. Event timestamp (optional)status? – "completed" | "current" | "upcoming" | "error". Event status (optional)icon? – ReactNode. Custom icon (optional)