Display
Timeline
Chronological list of events with colored markers.
<script>
import { Timeline } from "@codeatlasdev/ui";
</script>
<Timeline items={[{ label: "Order created", date: "Today", variant: "success" }]} />
With variants
Markers take the color of the item `variant`.
- Order created
Order #1234 received.
- Payment confirmed
Card ending 4242 approved.
- Picking
Items are being collected from stock.
- Awaiting shipment
Package ready for pickup.
- Delivered
Code
Simple
Only a label and a date.
- Project started
- Alpha released
- Public beta
- v1.0 stable
Code
Props
| Prop | Type | Default | Description |
|---|---|---|---|
items | TimelineItem[] | – | Events: `{ label, description?, date?, variant? }`. `variant` is `'default' | 'success' | 'error' | 'warning' | 'info'`. Required. |
class | string | '' | Extra class names. |