{
  "$schema": "https://ui.shadcn.com/schema/registry-item.json",
  "name": "file-reference",
  "type": "registry:ui",
  "title": "File reference",
  "description": "A compact card that cites a source file with its name, monospace path and line range. Useful for code assistants, docs and AI answers that point into a repo.",
  "dependencies": [
    "lucide-react"
  ],
  "registryDependencies": [
    "utils"
  ],
  "files": [
    {
      "path": "registry/ui/file-reference.tsx",
      "type": "registry:ui",
      "target": "components/ui/file-reference.tsx",
      "content": "\"use client\"\nimport { cn } from \"@/lib/utils\"\nimport { FileIcon } from \"lucide-react\"\n\nfunction FileReference({\n  name = \"hero-client-pitch.tsx\",\n  path = \"src/registry/premium/hero-client-pitch.tsx\",\n  lines = \"1–92\",\n  className,\n}: {\n  name?: string\n  path?: string\n  lines?: string\n  className?: string\n}) {\n  return (\n    <div data-slot=\"file-reference\" className={cn(\"flex items-center gap-3 rounded-xl border border-border bg-sunken px-3 py-2.5\", className)}>\n      <FileIcon className=\"size-4 shrink-0 text-fg-muted\" aria-hidden />\n      <div className=\"min-w-0 flex-1\">\n        <p className=\"truncate text-sm font-medium text-fg\">{name}</p>\n        <p className=\"truncate font-mono text-[11px] text-fg-muted\">{path}</p>\n      </div>\n      <span className=\"font-mono text-[11px] tabular-nums text-fg-muted\">{lines}</span>\n    </div>\n  )\n}\nexport { FileReference }\n"
    }
  ]
}
