{
  "$schema": "https://ui.shadcn.com/schema/registry-item.json",
  "name": "input19",
  "title": "Input",
  "description": "Input built with shadcn/ui.",
  "dependencies": [
    "lucide-react@0",
    "react-payment-inputs@1"
  ],
  "devDependencies": [
    "@types/react-payment-inputs"
  ],
  "registryDependencies": [
    "input"
  ],
  "files": [
    {
      "path": "contents/components/input/19/index.tsx",
      "content": "\"use client\";\n\nimport { CreditCardIcon } from \"lucide-react\";\nimport { useId } from \"react\";\nimport { usePaymentInputs } from \"react-payment-inputs\";\nimport images, { type CardImages } from \"react-payment-inputs/images\";\n\nimport { Input } from \"@/components/ui/input\";\n\nexport default function Component() {\n  const id = useId();\n  const { meta, getCardNumberProps, getExpiryDateProps, getCVCProps, getCardImageProps } =\n    usePaymentInputs();\n\n  return (\n    <div className=\"w-full max-w-sm *:not-first:mt-2\">\n      <legend className=\"text-foreground text-sm font-medium\">Card Details</legend>\n      <div className=\"rounded-md shadow-xs\">\n        <div className=\"relative focus-within:z-10\">\n          <Input\n            className=\"peer rounded-b-none pe-9 shadow-none [direction:inherit]\"\n            {...getCardNumberProps()}\n            id={`number-${id}`}\n          />\n          <div className=\"text-muted-foreground/80 pointer-events-none absolute inset-y-0 end-0 flex items-center justify-center pe-3 peer-disabled:opacity-50\">\n            {meta.cardType ? (\n              <svg\n                className=\"overflow-hidden rounded-sm\"\n                {...getCardImageProps({\n                  images: images as unknown as CardImages\n                })}\n                width={20}\n              />\n            ) : (\n              <CreditCardIcon aria-hidden=\"true\" size={16} />\n            )}\n          </div>\n        </div>\n        <div className=\"-mt-px flex\">\n          <div className=\"min-w-0 flex-1 focus-within:z-10\">\n            <Input\n              className=\"rounded-e-none rounded-t-none shadow-none [direction:inherit]\"\n              {...getExpiryDateProps()}\n              id={`expiry-${id}`}\n            />\n          </div>\n          <div className=\"-ms-px min-w-0 flex-1 focus-within:z-10\">\n            <Input\n              className=\"rounded-s-none rounded-t-none shadow-none [direction:inherit]\"\n              {...getCVCProps()}\n              id={`cvc-${id}`}\n            />\n          </div>\n        </div>\n      </div>\n    </div>\n  );\n}\n",
      "type": "registry:component",
      "target": "components/input19.tsx"
    }
  ],
  "type": "registry:component"
}