Timeline#

Display chronological events with connecting lines, icons, and content on either side.

Import#

TSX
import { Timeline } from '@sigx/daisyui';

Basic Usage#

Timeline with content on both sides and a middle icon.

TSX
Loading preview...

End Only (Bottom/Right Side)#

Show content only on the end side — useful for compact timelines.

TSX
Loading preview...

Start Only (Top/Left Side)#

Show content only on the start side.

TSX
Loading preview...

Colored Connectors#

Use the color prop on Timeline.Hr to color the connecting lines.

TSX
Loading preview...

Without Icons#

Timeline without middle icons — just connectors and content.

TSX
Loading preview...

Compact#

The compact modifier forces all content to one side.

TSX
Loading preview...

Snap Icon#

The snap modifier snaps icons to the start instead of the middle.

TSX
Loading preview...

Horizontal Timeline#

Use the horizontal modifier for a horizontal layout.

TSX
Loading preview...

Props#

Timeline Props#

PropTypeDefaultDescription
verticalbooleanfalseVertical layout (timeline-vertical)
horizontalbooleanfalseHorizontal layout (timeline-horizontal)
snapbooleanfalseSnap icon to start (timeline-snap-icon)
compactbooleanfalseForce all items to one side (timeline-compact)
classstring-Additional CSS classes

Timeline.Item Props#

PropTypeDefaultDescription
classstring-Additional CSS classes

Timeline.Start / Timeline.End Props#

PropTypeDefaultDescription
boxedbooleanfalseApply box styling (timeline-box)
classstring-Additional CSS classes

Timeline.Middle Props#

PropTypeDefaultDescription
classstring-Additional CSS classes

Timeline.Hr Props#

PropTypeDefaultDescription
color'primary' | 'secondary' | 'accent' | 'neutral' | 'info' | 'success' | 'warning' | 'error'-Connector line color (bg-*)
classstring-Additional CSS classes