Timeline
Lists entries in time order along a line.
Installation
pnpm dlx shadcn@latest add @paneui/timelineUsage
Composition
Examples
Time column
The column is 3.5rem wide; set --timeline-time on the Timeline for longer labels. Leave time out on every item to drop the column.
Hairline
The line starts at the first dot and ends at the last, so a single entry shows a dot alone.
TimelineItem
Also accepts every prop of li.
- time
- ReactNode
- Text in the time column.
- timeDetail
- ReactNode
- Quieter second line under the time, such as a date.
- tone= "default"
- "default" | "primary" | "success" | "warning" | "destructive"
- Dot colour;
primarymarks the current or next entry. - action
- ReactNode
- Trailing control aligned with the first line.
| Prop | Type | Default | Description |
|---|---|---|---|
| time | ReactNode | — | Text in the time column. |
| timeDetail | ReactNode | — | Quieter second line under the time, such as a date. |
| tone | "default" | "primary" | "success" | "warning" | "destructive" | "default" | Dot colour; primary marks the current or next entry. |
| action | ReactNode | — | Trailing control aligned with the first line. |
- data-tone
- The item's tone.
| Data attribute | Description |
|---|---|
| data-tone | The item's tone. |