Timeline
Display a series of events in chronological order with visual indicators and connecting lines.
Install Dependencies
npx quickcode-ui add TimelineExamples
Default Example
Default Timeline
Order Placed
Your order has been confirmed and is being prepared
2 hours ago
Processing
Your items are being picked and packed
1 hour ago
Shipped
Package is on its way to your location
In progress
Delivered
Package will be delivered to your address
Estimated: Tomorrow
Git Example
Git Timeline
Commit Created
You have created a new commit locally
Just now
Pushed
Commit has been pushed to the remote repository
5 minutes ago
Merged
Your branch has been merged successfully
Completed
Props
Timeline
| Prop | Type | Default | Description |
|---|---|---|---|
children | React.ReactNode | — | Timeline items to display |
active | number | undefined | Index of current active element, items before are highlighted |
color | string | 'bg-primary' | Color class applied to active items |
lineWidth | number | 2 | Width of the connecting line in pixels |
bulletSize | number | 32 | Size of the bullet (dot) |
align | 'left' | 'right' | 'left' | Position of the line and bullets relative to content |
reverseActive | boolean | false | Reverse active direction (highlight after index instead of before) |
dotStyle | 'filled' | 'Outline' | filled | Style for all the LineItem content |
className | string | undefined | Additional CSS classes |
TimelineItem
| Prop | Type | Default | Description |
|---|---|---|---|
children | React.ReactNode | — | Content inside the item |
variant | 'solid' | 'dashed' | 'dotted' | 'solid' | Line style for this item |
bullet | React.ReactNode | undefined | Icon or element rendered as the bullet |
title | React.ReactNode | undefined | Optional title shortcut |
lineVariant | 'solid' | 'dashed' | 'dotted' | undefined | Override line variant for this item |
className | string | undefined | Additional CSS classes |
TimelineDot
| Prop | Type | Default | Description |
|---|---|---|---|
children | React.ReactNode | undefined | Icon or element inside the dot |
className | string | undefined | Additional CSS classes |
TimelineContent
| Prop | Type | Default | Description |
|---|---|---|---|
children | React.ReactNode | — | Inner content of the item |
className | string | undefined | Additional CSS classes |
TimelineTitle
| Prop | Type | Default | Description |
|---|---|---|---|
children | React.ReactNode | — | Title inside the content |
className | string | undefined | Additional CSS classes |
TimelineDescription
| Prop | Type | Default | Description |
|---|---|---|---|
children | React.ReactNode | — | Description text |
className | string | undefined | Additional CSS classes |
Last updated on