Timeline
Shows a record's history in date order on a vertical line: an order history, a support ticket or an activity log.
zb:timeline zubazar/ui-pro
This component is in Zubazar UI Pro; Zubazar UI Pro brings Zubazar UI with it. Installing Zubazar UI Pro →
Basic usage
Put the events in zb:timeline as zb:timeline.item; title is required and time is free text (such as "2 hours ago").
<zb:timeline>
<zb:timeline.item title="Delivered" time="12.09.2026 14:32">Package handed to the recipient at the door.</zb:timeline.item>
<zb:timeline.item title="Shipped" time="11.09.2026 09:00">Package left the Kadıköy warehouse.</zb:timeline.item>
<zb:timeline.item title="Order placed" time="10.09.2026 16:47" />
</zb:timeline>
| Prop | Values |
|---|---|
title | Event title (required) |
time | Time text to the right of the title |
Colors
Pick the dot's colour with color to match the outcome: success for done, danger for cancelled; the default is primary.
<zb:timeline>
<zb:timeline.item title="Delivered" time="12.09.2026" color="success" />
<zb:timeline.item title="Recipient not available" time="10.09.2026" color="warning" />
<zb:timeline.item title="Delivery canceled" time="08.09.2026" color="danger" />
<zb:timeline.item title="Address updated" time="05.09.2026" color="info" />
<zb:timeline.item title="Shipped" time="01.09.2026" />
<zb:timeline.item title="Order placed" time="28.08.2026" color="secondary" />
</zb:timeline>
| Prop | Values |
|---|---|
color | primary | secondary | success | danger | warning | info | dark (brand = primary, neutral = secondary) |
Rich content
You can put an avatar, a badge or a link inside the item; with no content only the title line shows.
<zb:timeline>
<zb:timeline.item title="Delivered" time="12.09.2026 14:32" color="success">
<div class="flex flex-wrap items-center gap-2">
<zb:avatar name="Mehmet Kaya" size="xs" color="success" />
<span>Received by Mehmet Kaya</span>
<zb:badge variant="success">Express shipping</zb:badge>
</div>
</zb:timeline.item>
<zb:timeline.item title="Invoice issued" time="05.09.2026 10:12" color="info">
<a href="#" class="font-medium text-primary-ink hover:underline">invoice-ORD-10482.pdf</a>
</zb:timeline.item>
<zb:timeline.item title="Order placed" time="28.08.2026 16:47" color="secondary" />
</zb:timeline>
| Prop | Values |
|---|---|
(slot) | Content below the title; not shown when empty |
Props
The values the component takes. What are props and slots?
| Prop | Type | Default | Description |
|---|---|---|---|
timeline.item: title | — | — | Event title (required) |
timeline.item: time | — | null | Time text to the right of the title |
timeline.item: color | — | primary | primary · secondary · success · danger · warning · info · dark (brand = primary, neutral = secondary) |
Slots: zb:timeline: the items. zb:timeline.item: content below the title (optional).
Developer notes
- Attributes such as
classonzb:timeline.itemgo to the content box, not to theli.