Ordered events with a progress step. Drive completion with defaultValue or controlled value. Vertical or horizontal, LTR and RTL.
Vertical
Launch log
A calm vertical changelog. Completed steps fill the indicator via defaultValue.
Loading…
Horizontal
Sprint phases
orientation="horizontal" for a short delivery plan across the sprint.
Loading…
Installation
CLI
Usage
timeline.tsx
Props
| Prop | Type | Default | Description |
|---|---|---|---|
| defaultValue | number | 1 | Initial active step. Items with `step` ≤ this value are completed. |
| value | number | — | Controlled active step. |
| onValueChange | (value: number) => void | — | Called when the active step changes. |
| orientation | "vertical" · "horizontal" | "vertical" | Layout axis for items, separators, and indicators. |
| step | number | — | `TimelineItem` only. Ordinal index compared to the active step. |
| asChild | boolean | false | `TimelineDate` / `TimelineIndicator` — merge props onto the child. |