{
  "name": "attachment",
  "type": "registry:ui",
  "framework": "react",
  "title": "Attachment Card",
  "description": "File card showing a type icon, file name, size and a download action.",
  "registryDependencies": [
    "@newtui/button"
  ],
  "files": [
    {
      "path": "ui/attachment.tsx",
      "content": "import * as React from \"react\"\n\nimport { cn } from \"@/lib/utils\"\n\nconst Attachment = React.forwardRef<\n  HTMLDivElement,\n  React.HTMLAttributes<HTMLDivElement>\n>(({ className, ...props }, ref) => (\n  <div\n    ref={ref}\n    className={cn(\n      \"flex max-w-[360px] items-center gap-3 rounded-[var(--newt-radius-md)] border border-newt-border bg-newt-bg-surface px-3 py-[10px]\",\n      className\n    )}\n    {...props}\n  />\n))\nAttachment.displayName = \"Attachment\"\n\nconst AttachmentIcon = React.forwardRef<\n  HTMLDivElement,\n  React.HTMLAttributes<HTMLDivElement>\n>(({ className, ...props }, ref) => (\n  <div\n    ref={ref}\n    aria-hidden=\"true\"\n    className={cn(\n      \"flex h-9 w-9 shrink-0 items-center justify-center rounded-[var(--newt-radius-sm)] bg-newt-brand font-[family-name:var(--newt-font-mono)] text-xs font-bold text-newt-on-accent\",\n      className\n    )}\n    {...props}\n  />\n))\nAttachmentIcon.displayName = \"AttachmentIcon\"\n\nconst AttachmentMeta = React.forwardRef<\n  HTMLDivElement,\n  React.HTMLAttributes<HTMLDivElement>\n>(({ className, ...props }, ref) => (\n  <div ref={ref} className={cn(\"min-w-0 flex-1\", className)} {...props} />\n))\nAttachmentMeta.displayName = \"AttachmentMeta\"\n\nconst AttachmentName = React.forwardRef<\n  HTMLDivElement,\n  React.HTMLAttributes<HTMLDivElement>\n>(({ className, ...props }, ref) => (\n  <div\n    ref={ref}\n    className={cn(\n      \"truncate text-sm font-medium text-newt-text-link\",\n      className\n    )}\n    {...props}\n  />\n))\nAttachmentName.displayName = \"AttachmentName\"\n\nconst AttachmentSize = React.forwardRef<\n  HTMLDivElement,\n  React.HTMLAttributes<HTMLDivElement>\n>(({ className, ...props }, ref) => (\n  <div\n    ref={ref}\n    className={cn(\"text-xs text-newt-text-muted\", className)}\n    {...props}\n  />\n))\nAttachmentSize.displayName = \"AttachmentSize\"\n\nexport {\n  Attachment,\n  AttachmentIcon,\n  AttachmentMeta,\n  AttachmentName,\n  AttachmentSize,\n}\n",
      "type": "registry:ui"
    }
  ]
}