{
  "$schema": "https://ui.shadcn.com/schema/registry-item.json",
  "name": "source-card",
  "type": "registry:ui",
  "title": "Source card",
  "description": "Citation source card for AI answers showing a title, a source badge, the truncated URL and a short snippet. List references under a generated response.",
  "dependencies": [],
  "registryDependencies": [
    "https://ui.minidev.pro/r/badge.json",
    "utils"
  ],
  "files": [
    {
      "path": "registry/ui/source-card.tsx",
      "type": "registry:ui",
      "target": "components/ui/source-card.tsx",
      "content": "\"use client\"\nimport { Badge } from \"@/components/ui/badge\"\nimport { cn } from \"@/lib/utils\"\n\nfunction SourceCard({\n  title = \"DESIGN.md\",\n  url = \"local://DESIGN.md\",\n  snippet = \"Hairline · Geist Sans · accent hue 285 · zero blur shadows outside overlays.\",\n  className,\n}: {\n  title?: string\n  url?: string\n  snippet?: string\n  className?: string\n}) {\n  return (\n    <article data-slot=\"source-card\" className={cn(\"rounded-xl border border-border bg-surface p-4 shadow-highlight\", className)}>\n      <div className=\"flex items-center justify-between gap-2\">\n        <h3 className=\"text-sm font-medium text-fg\">{title}</h3>\n        <Badge variant=\"outline\">source</Badge>\n      </div>\n      <p className=\"mt-1 truncate font-mono text-[11px] text-fg-muted\">{url}</p>\n      <p className=\"mt-2 text-sm leading-[1.55] text-fg-muted\">{snippet}</p>\n    </article>\n  )\n}\nexport { SourceCard }\n"
    }
  ]
}
