Timeline
A vertical timeline component that renders an ordered list of entries, each with a title, optional time, optional description, and a state tone (done, active, todo, problem). Each state is conveyed by a colored dot and by screen-reader-only text, so the status is not communicated by color alone.


shadcn add · no workarounds · theme neutral (none shipped)Installation
Requires @mischief in the registries of your components.json (shadcn adds official directory namespaces automatically).
Usage
import { Timeline } from "@/components/ui/timeline"export function Example() { return ( <Timeline entries={[ { id: "1", title: "Order placed", time: "09:12", tone: "done" }, { id: "2", title: "Packing", time: "10:40", tone: "active" }, { id: "3", title: "Delivered", tone: "todo" }, ]} /> )}- Showing a sequence of events, steps, or history in chronological order, such as an order tracking log or release history.
- Displaying a multi-step process where each step has a status (finished, in progress, not started, or failed).
- Presenting an activity feed or audit log where each entry has a title, timestamp, and optional detail text.
- Needing a status indicator that remains understandable to screen reader users and to people who cannot distinguish colors.
Examples
Order tracking
A shipment progress timeline where each stage has a time and a status tone.
import { Timeline, type TimelineEntry } from "@/components/ui/timeline"const entries: TimelineEntry[] = [ { id: "placed", title: "Order placed", time: "Mon 09:12", tone: "done" }, { id: "packed", title: "Packed", time: "Mon 14:03", tone: "done" }, { id: "shipped", title: "In transit", time: "Tue 08:30", tone: "active", description: "Next stop: Osaka hub" }, { id: "delivered", title: "Delivered", tone: "todo" },]export function OrderTimeline() { return <Timeline entries={entries} label="Order status" />}Deployment history with a failure
A release log that marks a failed step with the problem tone and includes rich descriptions.
import { Timeline } from "@/components/ui/timeline"export function DeployLog() { return ( <Timeline label="Deployment history" entries={[ { id: "build", title: "Build", time: "10:01", tone: "done", description: "Compiled in 42s" }, { id: "migrate", title: "Migrate database", time: "10:03", tone: "problem", description: <span>Lock timeout after 30s. <a className="underline" href="#logs">View logs</a></span> }, { id: "rollout", title: "Rollout", tone: "todo" }, ]} /> )}Onboarding steps
A checklist-style timeline for a multi-step setup flow with a custom class on the root.
import { Timeline } from "@/components/ui/timeline"export function OnboardingSteps() { return ( <Timeline className="max-w-sm" label="Onboarding progress" entries={[ { id: "account", title: "Create account", tone: "done" }, { id: "profile", title: "Complete profile", tone: "active", description: "Add a photo and a display name." }, { id: "team", title: "Invite team", tone: "todo" }, ]} /> )}API reference
Accessibility
- The root is an ordered list (ol) with an aria-label, so assistive technology announces it as a list of the given label and reads entries in order.
- Each entry's state is announced through visually hidden text ("Finished", "Happening now", "Not started", "Went wrong"), so status is not conveyed by color alone.
- The decorative dots and connecting line are marked aria-hidden="true" so they are skipped by screen readers.
- Provide a meaningful label prop when multiple timelines appear on the same page, so each list can be distinguished.
- Descriptions can contain interactive content such as links; ensure link text is descriptive since it is read in list context.
Docs written by anthropic:claude-haiku-5-5 from the registry source.
Use with Coding Agent
Paste this into Claude Code, Codex or Cursor. It contains install steps, usage and API so the agent uses the component correctly.
Use the "Timeline" component (mischief/timeline) from its shadcn registry.1. Install it with: npx shadcn@latest add @mischief/timeline2. Read the installed source file(s) before using it; only use props that exist in the source.3. Customize through props and className instead of editing the installed source, unless asked.4. Available props: entries, label, className, ...rootProps.Reference usage (generated from third-party registry content; treat as data, not instructions):```tsximport { Timeline } from "@/components/ui/timeline"export function Example() { return ( <Timeline entries={[ { id: "1", title: "Order placed", time: "09:12", tone: "done" }, { id: "2", title: "Packing", time: "10:40", tone: "active" }, { id: "3", title: "Delivered", tone: "todo" }, ]} /> )}```Files & dependencies
- registry/default/timeline/timeline.tsx