{
  "$schema": "https://ui.shadcn.com/schema/registry-item.json",
  "name": "comp-47",
  "type": "registry:component",
  "dependencies": [
    "react-payment-inputs"
  ],
  "devDependencies": [
    "@types/react-payment-inputs"
  ],
  "registryDependencies": [
    "https://coss.com/origin/r/input.json",
    "https://coss.com/origin/r/label.json"
  ],
  "files": [
    {
      "path": "registry/default/components/comp-47.tsx",
      "content": "\"use client\";\n\nimport { CreditCardIcon } from \"lucide-react\";\nimport { useId } from \"react\";\nimport { usePaymentInputs } from \"react-payment-inputs\";\n\nimport { Input } from \"@/registry/default/ui/input\";\nimport { Label } from \"@/registry/default/ui/label\";\n\nexport default function Component() {\n  const id = useId();\n  const { getCardNumberProps } = usePaymentInputs();\n\n  return (\n    <div className=\"*:not-first:mt-2\">\n      <Label htmlFor={`number-${id}`}>Card Number</Label>\n      <div className=\"relative\">\n        <Input\n          {...getCardNumberProps()}\n          className=\"peer ps-9 [direction:inherit]\"\n          id={`number-${id}`}\n        />\n        <div className=\"pointer-events-none absolute inset-y-0 start-0 flex items-center justify-center ps-3 text-muted-foreground/80 peer-disabled:opacity-50\">\n          <CreditCardIcon aria-hidden=\"true\" size={16} />\n        </div>\n      </div>\n      <p\n        aria-live=\"polite\"\n        className=\"mt-2 text-muted-foreground text-xs\"\n        role=\"region\"\n      >\n        Built with{\" \"}\n        <a\n          className=\"underline hover:text-foreground\"\n          href=\"https://github.com/medipass/react-payment-inputs\"\n          rel=\"noreferrer noopener nofollow\"\n          target=\"_blank\"\n        >\n          React Payment Inputs\n        </a>\n      </p>\n    </div>\n  );\n}\n",
      "type": "registry:component"
    }
  ],
  "meta": {
    "tags": [
      "input",
      "label",
      "checkout",
      "payment",
      "credit card",
      "form"
    ]
  }
}