Timeline
A vertical timeline for displaying chronological events or activity logs.
When to Use
- To display a series of events in order
- For activity logs or change histories
- For process tracking with status indicators
Import
Examples
Basic
With Colors
Alternate Mode
With Pending
API
TimelineProps
items—TimelineItem[]— Timeline item datamode—"left" | "right" | "alternate"— Item position mode (default:"left")pending—ReactNode— Show a pending indicator at the endpendingDot—ReactNode— Custom pending dotreverse—boolean— Reverse the order (default:false)
TimelineItem
children—ReactNode— Item contentcolor—string— Dot color (default:"blue")dot—ReactNode— Custom dot elementlabel—ReactNode— Label text (shown on opposite side in alternate mode)position—"left" | "right"— Override position in alternate mode