{
  "$schema": "https://ui.shadcn.com/schema/registry-item.json",
  "name": "ai-citation-card",
  "type": "registry:ui",
  "title": "AI Citation Card",
  "dependencies": [
    "motion",
    "lucide-react"
  ],
  "files": [
    {
      "path": "components/ui/ai-citation-card.tsx",
      "content": "\"use client\";\n\nimport React, { useState } from \"react\";\nimport { motion, AnimatePresence } from \"motion/react\";\nimport { ExternalLink, Globe } from \"lucide-react\";\nimport { cn } from \"@/lib/utils\";\n\nconst SOURCES = [\n  {\n    id: 1,\n    domain: \"motion.dev\",\n    title: \"Shared layout animations with layoutId\",\n    snippet: \"Use layoutId to animate smoothly between distinct elements across state changes.\",\n  },\n  {\n    id: 2,\n    domain: \"nextjs.org\",\n    title: \"Next.js 16 App Router Server Components\",\n    snippet: \"Stream UI progressively while keeping static shells cached at the edge.\",\n  },\n  {\n    id: 3,\n    domain: \"ui.shadcn.com\",\n    title: \"Custom Component Registry Schema\",\n    snippet: \"Distribute copy-pasteable React components with a single CLI command.\",\n  },\n];\n\nexport function AiCitationCard({ className }: { className?: string }) {\n  const [activeId, setActiveId] = useState<number>(1);\n  const activeSource = SOURCES.find((s) => s.id === activeId) ?? SOURCES[0];\n\n  return (\n    <div\n      className={cn(\n        \"w-full max-w-md space-y-3 rounded-2xl border border-white/10 bg-zinc-900/90 p-4 backdrop-blur-xl\",\n        className\n      )}\n    >\n      <p className=\"text-xs leading-relaxed text-zinc-200\">\n        Modern component registries combine spring-driven{\" \"}\n        <button\n          onClick={() => setActiveId(1)}\n          className={cn(\n            \"mx-0.5 inline-flex h-4 w-4 items-center justify-center rounded-full text-[10px] font-semibold cursor-pointer transition-colors\",\n            activeId === 1\n              ? \"bg-blue-500 text-white\"\n              : \"bg-white/10 text-zinc-300 hover:bg-white/20\"\n          )}\n        >\n          1\n        </button>{\" \"}\n        micro-interactions, Next.js static prerendering{\" \"}\n        <button\n          onClick={() => setActiveId(2)}\n          className={cn(\n            \"mx-0.5 inline-flex h-4 w-4 items-center justify-center rounded-full text-[10px] font-semibold cursor-pointer transition-colors\",\n            activeId === 2\n              ? \"bg-blue-500 text-white\"\n              : \"bg-white/10 text-zinc-300 hover:bg-white/20\"\n          )}\n        >\n          2\n        </button>{\" \"}\n        and open CLI schemas{\" \"}\n        <button\n          onClick={() => setActiveId(3)}\n          className={cn(\n            \"mx-0.5 inline-flex h-4 w-4 items-center justify-center rounded-full text-[10px] font-semibold cursor-pointer transition-colors\",\n            activeId === 3\n              ? \"bg-blue-500 text-white\"\n              : \"bg-white/10 text-zinc-300 hover:bg-white/20\"\n          )}\n        >\n          3\n        </button>{\" \"}\n        for zero lock-in ownership.\n      </p>\n\n      <AnimatePresence mode=\"wait\">\n        <motion.div\n          key={activeSource.id}\n          initial={{ opacity: 0, y: 6 }}\n          animate={{ opacity: 1, y: 0 }}\n          exit={{ opacity: 0, y: -6 }}\n          transition={{ duration: 0.18 }}\n          className=\"rounded-xl border border-white/10 bg-zinc-950/80 p-3\"\n        >\n          <div className=\"flex items-center justify-between text-[11px] text-zinc-400\">\n            <span className=\"flex items-center gap-1.5 font-medium text-blue-300\">\n              <Globe className=\"h-3 w-3\" />\n              [{activeSource.id}] {activeSource.domain}\n            </span>\n            <ExternalLink className=\"h-3 w-3 text-zinc-500\" />\n          </div>\n          <div className=\"mt-1 text-xs font-medium text-zinc-100\">\n            {activeSource.title}\n          </div>\n          <p className=\"mt-0.5 text-[11px] text-zinc-400\">\n            {activeSource.snippet}\n          </p>\n        </motion.div>\n      </AnimatePresence>\n    </div>\n  );\n}\n\n",
      "type": "registry:ui"
    }
  ]
}