Timeline
Time-series list wrapping daisyUI 5 timeline class. Pass items array. orientation (vertical/horizontal), compact (one-side align), snap (icons snap top), appearance (solid default / soft) modifiers. Add state=done|current|upcoming to items for icon and connector color changes. solid (default) makes done chain prominent; appearance="soft" is opt-in for a gentler look.
Pass an items array (vertical is the default)
-
10/01 09:12Order receivedThank you for your order
-
10/01 10:30Payment confirmedPaid by credit card
-
10/02 14:00Preparing shipmentPacking at the warehouse
-
10/03 16:45DeliveredLeft with the recipient
<x-timeline :items="[
['title' => 'Order received', 'time' => '10/01 09:12', 'desc' => 'Thank you for your order'],
['title' => 'Payment confirmed', 'time' => '10/01 10:30', 'desc' => 'Paid by credit card'],
['title' => 'Preparing shipment', 'time' => '10/02 14:00', 'desc' => 'Packing at the warehouse'],
['title' => 'Delivered', 'time' => '10/03 16:45', 'desc' => 'Left with the recipient'],
]" />
orientation=horizontal — 4 steps side by side
-
Step 1Cart
-
Step 2Shipping
-
Step 3Payment
-
Step 4Done
<x-timeline orientation="horizontal" :items="[
['title' => 'Cart', 'time' => 'Step 1'],
['title' => 'Shipping', 'time' => 'Step 2'],
['title' => 'Payment', 'time' => 'Step 3'],
['title' => 'Done', 'time' => 'Step 4'],
]" />
compact: pins every item to one side
-
2025/06RequirementsClient hearing complete
-
2025/07DesignAPI and data model finalized
-
2025/08ImplementationCore feature development
-
2025/09ReleaseShipped to production
<x-timeline compact :items="[
['title' => 'Requirements', 'time' => '2025/06', 'desc' => 'Client hearing complete'],
['title' => 'Design', 'time' => '2025/07', 'desc' => 'API and data model finalized'],
['title' => 'Implementation', 'time' => '2025/08', 'desc' => 'Core feature development'],
['title' => 'Release', 'time' => '2025/09', 'desc' => 'Shipped to production'],
]" />
snap: snaps the middle icon to the top
-
Week 1ResearchMarket research and competitor analysis
-
Week 2PrototypeMVP UI in Figma
-
Week 3User testFive moderated sessions
-
Week 4ImplementationBuild the validated flow
<x-timeline snap :items="[
['title' => 'Research', 'time' => 'Week 1', 'desc' => 'Market research and competitor analysis'],
['title' => 'Prototype', 'time' => 'Week 2', 'desc' => 'MVP UI in Figma'],
['title' => 'User test', 'time' => 'Week 3', 'desc' => 'Five moderated sessions'],
['title' => 'Implementation', 'time' => 'Week 4', 'desc' => 'Build the validated flow'],
]" />
state per item: done / current / upcoming changes icon & connector color
-
10/01 09:12Order receivedCompleted
-
10/01 10:30Payment confirmedCompleted
-
10/02Preparing shipmentIn progress
-
scheduledDeliveryNot started
-
scheduledReceipt confirmedNot started
<x-timeline :items="[
['title' => 'Order received', 'time' => '10/01 09:12', 'desc' => 'Completed', 'state' => 'done'],
['title' => 'Payment confirmed', 'time' => '10/01 10:30', 'desc' => 'Completed', 'state' => 'done'],
['title' => 'Preparing shipment', 'time' => '10/02', 'desc' => 'In progress', 'state' => 'current'],
['title' => 'Delivery', 'time' => 'scheduled', 'desc' => 'Not started', 'state' => 'upcoming'],
['title' => 'Receipt confirmed', 'time' => 'scheduled', 'desc' => 'Not started', 'state' => 'upcoming'],
]" />
appearance — solid (default, saturated) vs soft (opt-in, muted)
-
doneStep 1
-
doneStep 2
-
doneStep 3
-
currentStep 4
-
upcomingStep 5
-
doneStep 1
-
doneStep 2
-
doneStep 3
-
currentStep 4
-
upcomingStep 5
<x-timeline :items="[
['title' => 'Step 1', 'time' => 'done', 'state' => 'done'],
['title' => 'Step 2', 'time' => 'done', 'state' => 'done'],
['title' => 'Step 3', 'time' => 'done', 'state' => 'done'],
['title' => 'Step 4', 'time' => 'current', 'state' => 'current'],
['title' => 'Step 5', 'time' => 'upcoming', 'state' => 'upcoming'],
]" />
<x-timeline appearance="soft" :items="[
['title' => 'Step 1', 'time' => 'done', 'state' => 'done'],
['title' => 'Step 2', 'time' => 'done', 'state' => 'done'],
['title' => 'Step 3', 'time' => 'done', 'state' => 'done'],
['title' => 'Step 4', 'time' => 'current', 'state' => 'current'],
['title' => 'Step 5', 'time' => 'upcoming', 'state' => 'upcoming'],
]" />
solid (left) = default text-primary / bg-primary. soft (right) = the done icon becomes text-primary/70 and the connector bg-primary/30 for a muted look.