Timeline

Tailwind vertical timeline with a hairline rail, a dot per event, titles, optional descriptions and right-aligned timestamps for activity feeds and changelogs.

src/registry/ui/timeline.tsx/r/timeline.json

Installation#

bash
npx shadcn@latest add @minidev/timeline

MiniDev UI is in the shadcn registry directory, so the short form works with no setup. Older CLI versions can use the full URL: npx shadcn@latest add https://ui.minidev.pro/r/timeline.json

Usage#

tsx
import { Timeline } from "@/components/ui/timeline"

export function Example() {
  return (
    <Timeline className="max-w-md" items={[
      { title: "Deployed v0.1", description: "Batch A shipped", time: "2h ago" },
      { title: "Audit green", description: "All gallery routes passed", time: "3h ago" },
      { title: "Scaffold", description: "Next + shadcn", time: "5h ago" },
    ]} />
  )
}

API reference#

Timeline props
PropTypeDefault
itemsTimelineItem[]SAMPLE_ITEMS
classNamestring-

Examples#

All dashboard components

Learn more