{
  "$schema": "https://ui.shadcn.com/schema/registry-item.json",
  "name": "object-timeline",
  "title": "Object Timeline",
  "description": "Vertical event list with an icon, title, description, date and an optional action on the title.",
  "files": [
    {
      "path": "components/dentil/object-timeline/object-timeline.tsx",
      "content": "'use client';\n\nimport type { ComponentProps, ComponentType, ReactNode } from 'react';\n\nimport { cn } from '@/lib/utils';\n\n/** Any icon component that accepts `className` and `size`, such as a Lucide icon. */\nexport type ObjectTimelineIcon = ComponentType<{ className?: string; size?: number }>;\n\nexport type ObjectTimelineItem = {\n  id: number | string;\n  date?: ReactNode;\n  title: ReactNode;\n  description?: ReactNode;\n  icon: ObjectTimelineIcon;\n  iconClassName?: string;\n  /** Turns the title into a button. Most items are a record of something and have none. */\n  onClick?: () => void;\n};\n\nexport type ObjectTimelineProps = Omit<ComponentProps<'ol'>, 'children'> & {\n  items: readonly ObjectTimelineItem[];\n};\n\nexport function ObjectTimeline({ items, className, ...props }: ObjectTimelineProps) {\n  return (\n    <ol data-slot=\"object-timeline\" className={cn('m-0 flex list-none flex-col p-0', className)} {...props}>\n      {items.map((item) => {\n        const Icon = item.icon;\n        return (\n          <li key={item.id} data-slot=\"object-timeline-item\" className=\"group relative flex gap-4 pb-6 last:pb-0\">\n            <span\n              aria-hidden\n              className=\"bg-border absolute top-4 bottom-0 left-2 w-px -translate-x-1/2 group-last:hidden\"\n            />\n            <span\n              aria-hidden\n              className=\"text-muted-foreground relative z-10 flex size-4 shrink-0 items-center justify-center\">\n              <Icon size={14} className={item.iconClassName} />\n            </span>\n            <div className=\"-mt-0.5 flex min-w-0 flex-1 flex-col gap-1\">\n              <div className=\"text-sm\">\n                {item.onClick ? (\n                  <button\n                    type=\"button\"\n                    onClick={item.onClick}\n                    className=\"focus-visible:ring-ring/50 cursor-pointer rounded-sm text-left underline-offset-4 outline-none hover:underline focus-visible:ring-[3px]\">\n                    {item.title}\n                  </button>\n                ) : (\n                  item.title\n                )}\n              </div>\n              {item.description ? <div className=\"text-muted-foreground text-sm\">{item.description}</div> : null}\n              {item.date ? <div className=\"text-muted-foreground text-xs\">{item.date}</div> : null}\n            </div>\n          </li>\n        );\n      })}\n    </ol>\n  );\n}\n",
      "type": "registry:component",
      "target": "components/dentil/object-timeline/object-timeline.tsx"
    }
  ],
  "type": "registry:component"
}