{
  "$schema": "https://ui.shadcn.com/schema/registry-item.json",
  "name": "activity-feed",
  "type": "registry:block",
  "title": "Activity feed",
  "description": "A clear timeline of what happened and who made it happen.",
  "categories": [
    "blocks"
  ],
  "dependencies": [],
  "registryDependencies": [
    "card"
  ],
  "files": [
    {
      "path": "src/registry/overtrue/activity-feed.tsx",
      "type": "registry:component",
      "target": "components/overtrue/activity-feed.tsx",
      "content": "import type { ReactNode } from \"react\";\nimport { cn } from \"@/lib/utils\";\nimport { Card, CardContent, CardHeader, CardTitle } from \"@/components/ui/card\";\nexport interface ActivityItem {\n  id: string;\n  initials: string;\n  content: ReactNode;\n  time: string;\n}\nexport function ActivityFeed({\n  items,\n  title = \"Recent activity\",\n  className,\n}: {\n  items: ActivityItem[];\n  title?: string;\n  className?: string;\n}) {\n  return (\n    <Card\n      data-slot=\"activity-feed\"\n      className={cn(\n        \"gap-0 rounded-lg border bg-card py-0 shadow-none\",\n        className,\n      )}\n    >\n      <CardHeader className=\"border-b px-5 py-4 [.border-b]:pb-4\">\n        <CardTitle className=\"text-sm font-semibold\">{title}</CardTitle>\n      </CardHeader>\n      <CardContent className=\"px-5 py-1\">\n        <ol className=\"divide-y divide-border\">\n          {items.map((item) => (\n            <li key={item.id} className=\"flex gap-3 py-4\">\n              <span className=\"flex size-8 shrink-0 items-center justify-center rounded-full bg-primary/10 text-xs font-medium text-primary\">\n                {item.initials}\n              </span>\n              <div className=\"min-w-0 text-sm\">\n                <div className=\"text-card-foreground\">{item.content}</div>\n                <p className=\"mt-1 text-xs text-muted-foreground\">\n                  {item.time}\n                </p>\n              </div>\n            </li>\n          ))}\n        </ol>\n        {!items.length && (\n          <p className=\"py-6 text-center text-sm text-muted-foreground\">\n            No activity yet.\n          </p>\n        )}\n      </CardContent>\n    </Card>\n  );\n}\n"
    }
  ],
  "docs": "Documentation: https://ui.overtrue.xyz/blocks/activity-feed. Requires an initialized shadcn/ui project with Tailwind CSS v4."
}
