Data & Media
@hacline/ui/timelineTimeline
Present events and step-by-step progress in sequential order.
Usage
Press Tab to enter the timeline and use the Up and Down arrow keys to browse events. TimelineTime provides a machine-readable date, and status marks each event's position in the sequence.
Submitted for review
Prototype and review checklist submitted
In review
Product and engineering aligning on scope
Planned release
Sync final docs and component updates
"use client";
import {
Timeline,
TimelineConnector,
TimelineDescription,
TimelineItem,
TimelineMarker,
TimelineTime,
TimelineTitle,
} from "@/components/ui/hacline/components/timeline";
const events = [
{
date: "2026-12-01",
description: "Prototype and review checklist submitted",
label: "Dec 1",
status: "complete",
title: "Submitted for review",
},
{
date: "2026-12-03",
description: "Product and engineering aligning on scope",
label: "Dec 3",
status: "current",
title: "In review",
},
{
date: "2026-12-08",
description: "Sync final docs and component updates",
label: "Dec 8",
status: "upcoming",
title: "Planned release",
},
] as const;
export const Example = () => (
<Timeline aria-label="Release timeline" className="max-w-xs">
{events.map(({ date, description, label, status, title }) => (
<TimelineItem key={date} status={status}>
<TimelineMarker />
<TimelineConnector />
<TimelineTitle>{title}</TimelineTitle>
<TimelineTime dateTime={date}>{label}</TimelineTime>
<TimelineDescription>{description}</TimelineDescription>
</TimelineItem>
))}
</Timeline>
);Horizontal Flow
Use status to distinguish completed, current, and upcoming order steps.
Order placed
In transit
Delivered
"use client";
import {
Timeline,
TimelineConnector,
TimelineItem,
TimelineMarker,
TimelineTitle,
} from "@/components/ui/hacline/components/timeline";
export const Example = () => (
<Timeline
aria-label="Order progress"
className="max-w-md"
orientation="horizontal"
>
<TimelineItem status="complete">
<TimelineMarker />
<TimelineConnector />
<TimelineTitle>Order placed</TimelineTitle>
</TimelineItem>
<TimelineItem status="current">
<TimelineMarker />
<TimelineConnector />
<TimelineTitle>In transit</TimelineTitle>
</TimelineItem>
<TimelineItem status="upcoming">
<TimelineMarker />
<TimelineTitle>Delivered</TimelineTitle>
</TimelineItem>
</Timeline>
);Parts
| Part | Description |
|---|---|
TimelineConnector | The line between its event's marker and the next one. Hidden from assistive technology. |
TimelineDescription | More about its event. It describes the event. |
TimelineItem | One event. Arrow keys move between events, and links and buttons inside stay in the tab order. |
TimelineMarker | The dot or icon that marks its event on the line. Hidden from assistive technology. |
TimelineTime | When its event happened, as a <time>. Pass dateTime so machines can read it. It describes the event. |
TimelineTitle | What happened. It names its event. |
Props
Prop
Type