{
  "$schema": "https://ui.shadcn.com/schema/registry-item.json",
  "name": "comp-44",
  "type": "registry:component",
  "dependencies": [
    "input-otp"
  ],
  "registryDependencies": [
    "https://coss.com/origin/r/label.json"
  ],
  "files": [
    {
      "path": "registry/default/components/comp-44.tsx",
      "content": "\"use client\";\n\nimport { OTPInput, type SlotProps } from \"input-otp\";\nimport { useId } from \"react\";\n\nimport { cn } from \"@/registry/default/lib/utils\";\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}>OTP input single</Label>\n      <OTPInput\n        containerClassName=\"flex items-center gap-3 has-disabled:opacity-50\"\n        id={id}\n        maxLength={4}\n        render={({ slots }) => (\n          <div className=\"flex\">\n            {slots.map((slot, idx) => (\n              <Slot key={String(idx)} {...slot} />\n            ))}\n          </div>\n        )}\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/guilhermerodz/input-otp\"\n          rel=\"noreferrer noopener nofollow\"\n          target=\"_blank\"\n        >\n          Input OTP\n        </a>\n      </p>\n    </div>\n  );\n}\n\nfunction Slot(props: SlotProps) {\n  return (\n    <div\n      className={cn(\n        \"-ms-px relative flex size-9 items-center justify-center border border-input bg-background font-medium text-foreground shadow-xs transition-[color,box-shadow] first:ms-0 first:rounded-s-md last:rounded-e-md\",\n        { \"z-10 border-ring ring-[3px] ring-ring/50\": props.isActive },\n      )}\n    >\n      {props.char !== null && <div>{props.char}</div>}\n    </div>\n  );\n}\n",
      "type": "registry:component"
    }
  ],
  "meta": {
    "tags": [
      "input",
      "label",
      "otp"
    ]
  }
}