Timeline
Display a list of events in chronological order.
Basic Usage
- 2024-01-01Project StartedInitial commit and setup.
- 2024-02-15Beta ReleaseReleased first beta version.
- 2024-03-10Feedback CollectionGathering user feedback.
Example
Horizontal
Use the direction="horizontal" prop to display the timeline horizontally.
- Step 1Order Placed
- Step 2Processing
- Step 3Shipped
- Step 4Delivered
Example
Custom Styles & Variants
You can customize the dots and connectors using variant and color props. You can also use custom icons for dots.
- DoneCompleted StepThis step is fully complete.
- In ProgressCurrent StepWorking on this right now.
- PendingUpcoming StepWaiting for previous steps.
- FailedFailed StepSomething went wrong here.
Example
Center Position
Use the position="center" prop to display the timeline alternately on both sides.
- 2023Company FoundedStarted with a small team of 3 people.
- 2024Series A FundingSecured $5M in Series A funding.
- 2025Global ExpansionOpened offices in Europe and Asia.
- 2026IPOSuccessfully went public.
Example
API
BrTimeline
Props
| Name | Type | Default | Description |
|---|---|---|---|
| direction | 'vertical' | 'horizontal' | 'vertical' | The orientation of the timeline |
| position | 'left' | 'right' | 'center' | 'right' | The position of the timeline content relative to the axis |
| color | string | 'default' | Default color for all dots and connectors in the timeline |
BrTimelineItem
Props
| Name | Type | Default | Description |
|---|---|---|---|
| last | boolean | false | Set to true for the last item to hide its connector line |
BrTimelineDot
Props
| Name | Type | Default | Description |
|---|---|---|---|
| variant | 'dot' | 'circle' | 'square' | 'icon' | 'circle' | The visual style of the dot |
| color | string | 'default' | The color of the dot |
BrTimelineConnector
Props
| Name | Type | Default | Description |
|---|---|---|---|
| variant | 'solid' | 'dashed' | 'dotted' | 'none' | 'solid' | The style of the connector line |
| color | string | - | Custom color for the connector line |
BrTimelineContent
A container for the main content of the timeline item.
BrTimelineTime
A container for the timestamp or label of the timeline item.