{
  "$schema": "https://ui.shadcn.com/schema/registry-item.json",
  "name": "comp-54",
  "type": "registry:component",
  "dependencies": [
    "use-mask-input"
  ],
  "registryDependencies": [
    "https://coss.com/origin/r/input.json",
    "https://coss.com/origin/r/label.json"
  ],
  "files": [
    {
      "path": "registry/default/components/comp-54.tsx",
      "content": "\"use client\";\n\nimport { useId } from \"react\";\nimport { withMask } from \"use-mask-input\";\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  return (\n    <div className=\"*: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      <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/eduardoborges/use-mask-input\"\n          rel=\"noreferrer noopener nofollow\"\n          target=\"_blank\"\n        >\n          use-mask-input\n        </a>\n      </p>\n    </div>\n  );\n}\n",
      "type": "registry:component"
    }
  ],
  "meta": {
    "tags": [
      "input",
      "label",
      "mask"
    ]
  }
}