Timeline
Display chronological events with connecting lines, icons, and content on either side.
Import
import { Timeline } from '@sigx/daisyui';
Basic Usage
Timeline with content on both sides and a middle icon.
Loading preview...
End Only (Bottom/Right Side)
Show content only on the end side — useful for compact timelines.
Loading preview...
Start Only (Top/Left Side)
Show content only on the start side.
Loading preview...
Colored Connectors
Use the color prop on Timeline.Hr to color the connecting lines.
Loading preview...
Without Icons
Timeline without middle icons — just connectors and content.
Loading preview...
Compact
The compact modifier forces all content to one side.
Loading preview...
Snap Icon
The snap modifier snaps icons to the start instead of the middle.
Loading preview...
Horizontal Timeline
Use the horizontal modifier for a horizontal layout.
Loading preview...
Props
Timeline Props
| Prop | Type | Default | Description |
|---|---|---|---|
vertical | boolean | false | Vertical layout (timeline-vertical) |
horizontal | boolean | false | Horizontal layout (timeline-horizontal) |
snap | boolean | false | Snap icon to start (timeline-snap-icon) |
compact | boolean | false | Force all items to one side (timeline-compact) |
class | string | - | Additional CSS classes |
Timeline.Item Props
| Prop | Type | Default | Description |
|---|---|---|---|
class | string | - | Additional CSS classes |
Timeline.Start / Timeline.End Props
| Prop | Type | Default | Description |
|---|---|---|---|
boxed | boolean | false | Apply box styling (timeline-box) |
class | string | - | Additional CSS classes |
Timeline.Middle Props
| Prop | Type | Default | Description |
|---|---|---|---|
class | string | - | Additional CSS classes |
Timeline.Hr Props
| Prop | Type | Default | Description |
|---|---|---|---|
color | 'primary' | 'secondary' | 'accent' | 'neutral' | 'info' | 'success' | 'warning' | 'error' | - | Connector line color (bg-*) |
class | string | - | Additional CSS classes |