{
  "$schema": "https://ui.shadcn.com/schema/registry-item.json",
  "name": "file-row",
  "type": "registry:ui",
  "title": "File row",
  "description": "A single file row with an icon, a truncated name, an optional meta line and a ghost download button with an accessible label. Styled with Tailwind.",
  "dependencies": [
    "lucide-react"
  ],
  "registryDependencies": [
    "https://ui.minidev.pro/r/icon-button.json",
    "utils"
  ],
  "files": [
    {
      "path": "registry/ui/file-row.tsx",
      "type": "registry:ui",
      "target": "components/ui/file-row.tsx",
      "content": "\"use client\"\nimport * as React from \"react\"\nimport { FileIcon, DownloadIcon } from \"lucide-react\"\nimport { cn } from \"@/lib/utils\"\nimport { IconButton } from \"@/components/ui/icon-button\"\n\nfunction FileRow({\n  name,\n  meta,\n  onDownload,\n  className,\n}: {\n  name: string\n  meta?: string\n  onDownload?: () => void\n  className?: string\n}) {\n  return (\n    <div\n      data-slot=\"file-row\"\n      className={cn(\n        \"flex items-center gap-3 rounded-xl border border-border bg-surface px-3 py-2\",\n        className\n      )}\n    >\n      <FileIcon className=\"size-4 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        {meta ? <p className=\"text-xs text-fg-muted\">{meta}</p> : null}\n      </div>\n      {onDownload ? (\n        <IconButton type=\"button\" variant=\"ghost\" size=\"icon-sm\" aria-label={`Download ${name}`} onClick={onDownload}>\n          <DownloadIcon />\n        </IconButton>\n      ) : null}\n    </div>\n  )\n}\nexport { FileRow }\n"
    }
  ]
}
