{
  "$schema": "https://ui.shadcn.com/schema/registry-item.json",
  "name": "timeline",
  "title": "Timeline",
  "author": "VenusUI",
  "description": "A vertical timeline for changelogs, roadmaps and history.",
  "files": [
    {
      "path": "registry/default/ui/timeline.tsx",
      "content": "import * as React from \"react\"\n\nimport { cn } from \"@/lib/utils\"\n\ninterface TimelineEntry {\n  id: string\n  /** Shown above the title, e.g. a date or version. Use a `<time>`-friendly string. */\n  date: string\n  /** Machine-readable date for the `<time>` element, e.g. \"2026-11-10\". */\n  dateTime?: string\n  title: React.ReactNode\n  description?: React.ReactNode\n  /** Highlight this entry's marker, e.g. the latest release. */\n  current?: boolean\n}\n\ninterface TimelineProps extends Omit<React.ComponentProps<\"ol\">, \"children\"> {\n  entries: TimelineEntry[]\n}\n\n/**\n * A vertical timeline for changelogs, roadmaps or history. An ordered list\n * with a connecting line and markers; dates use `<time>`. Works in Server\n * Components.\n */\nfunction Timeline({ entries, className, ...props }: TimelineProps) {\n  return (\n    <ol data-slot=\"timeline\" className={cn(\"relative space-y-8 border-l pl-6\", className)} {...props}>\n      {entries.map((entry) => (\n        <li key={entry.id} className=\"relative\">\n          <span\n            aria-hidden=\"true\"\n            className={cn(\n              \"absolute top-1.5 -left-[1.95rem] size-3 rounded-full border-2 border-background\",\n              entry.current ? \"bg-primary ring-4 ring-primary/20\" : \"bg-muted-foreground/50\"\n            )}\n          />\n          <time dateTime={entry.dateTime} className=\"font-mono text-xs text-muted-foreground\">\n            {entry.date}\n          </time>\n          <h3 className=\"mt-1 font-medium\">\n            {entry.title}\n            {entry.current ? <span className=\"sr-only\"> (current)</span> : null}\n          </h3>\n          {entry.description ? <div className=\"mt-1.5 text-sm text-muted-foreground\">{entry.description}</div> : null}\n        </li>\n      ))}\n    </ol>\n  )\n}\n\nexport { Timeline, type TimelineEntry, type TimelineProps }\n",
      "type": "registry:ui"
    }
  ],
  "meta": {
    "version": "0.1.1"
  },
  "categories": [
    "data-display"
  ],
  "type": "registry:ui"
}