{
  "$schema": "https://ui.shadcn.com/schema/registry-item.json",
  "name": "input21",
  "title": "Input",
  "description": "Input built with shadcn/ui.",
  "dependencies": [
    "use-mask-input@3"
  ],
  "registryDependencies": [
    "input",
    "label"
  ],
  "files": [
    {
      "path": "contents/components/input/21/index.tsx",
      "content": "\"use client\";\n\nimport { useId } from \"react\";\nimport { withMask } from \"use-mask-input\";\n\nimport { Input } from \"@/components/ui/input\";\nimport { Label } from \"@/components/ui/label\";\n\nexport default function Component() {\n  const id = useId();\n  return (\n    <div className=\"w-full max-w-sm *:not-first:mt-2\">\n      <Label htmlFor={id}>Input with mask</Label>\n      <Input\n        id={id}\n        placeholder=\"AB12 CDE\"\n        ref={(input) => {\n          if (input) {\n            withMask(\"AA99 AAA\", {\n              placeholder: \"\",\n              showMaskOnHover: false\n            })(input);\n          }\n        }}\n        type=\"text\"\n      />\n    </div>\n  );\n}\n",
      "type": "registry:component",
      "target": "components/input21.tsx"
    }
  ],
  "type": "registry:component"
}