Timeline
Displays an ordered sequence of timestamped events on a vertical time axis.
Examples
Section titled “Examples”Shipping History
Section titled “Shipping History”- Order placed
We received order #SIL-1048 and sent a confirmation email.
- Package shipped
The carrier picked up the package in Oakland, California.
- Delivered
The package was left at the front door.
<Timeline items={shippingItems} timestampFormat="auto" />Audit Log
Section titled “Audit Log”- Record createdMorgan created this customer record.
- Owner changedThe owner changed from Morgan to Taylor.
- Note addedTaylor added a follow-up note.
<Timeline items={auditItems} timestampFormat="auto" />With End Content
Section titled “With End Content”- Appointment #1CompletedAnnual physical with Dr. Rivera.
- Appointment #2ConfirmedLab review with Dr. Chen.
- Appointment #3: Post-operative follow-upPendingConfirmation is still required.
<Timeline items={appointmentItems} timestampFormat="auto" />Timeline
Section titled “Timeline”Displays an ordered sequence of timestamped events on a vertical time axis.
| Prop | Type | Default | Description |
|---|---|---|---|
className | string | — | Additional CSS class names applied to the ordered list. |
data-testid | string | — | Test ID applied to the ordered list. |
items* | TimelineItemConfig[] | — | Timeline entries, rendered in the supplied order. |
ref | Ref<HTMLOListElement> | — | Ref forwarded to the ordered list. |
style | CSSProperties | — | Inline styles applied to the ordered list. |
timestampFormat | "auto" | "time" | "date" | "dateTime" | "relative" | "isoDate" | "isoTime" | "isoDateTime" | 'auto' | How to format every entry's timestamp. |