{
  "$schema": "https://ui.shadcn.com/schema/registry-item.json",
  "name": "input-otp-8",
  "type": "registry:component",
  "title": "Input OTP 8",
  "description": "Input OTP 8. A set of input fields designed to capture one-time passwords (OTP) or verification codes, typically split into individual boxes for better UX and security.",
  "dependencies": [],
  "registryDependencies": [
    "input-otp",
    "label"
  ],
  "files": [
    {
      "path": "components/watermelon/input-otp-8.tsx",
      "type": "registry:component",
      "content": "'use client';\n\nimport { useId } from 'react';\n\nimport {\n  InputOTP,\n  InputOTPGroup,\n  InputOTPSlot,\n} from '@/components/base-ui/input-otp';\nimport { Label } from '@/components/base-ui/label';\n\nconst InputOtp8 = () => {\n  const id = useId();\n\n  return (\n    <div className=\"max-w-xs space-y-1\">\n      <div className=\"text-center\">\n        <Label htmlFor={id} className=\"text-base font-medium\">\n          Enter code\n        </Label>\n      </div>\n\n      <InputOTP id={id} maxLength={4} className=\"w-full\">\n        <InputOTPGroup className=\"flex justify-between gap-2 *:data-[active=true]:ring-0 *:data-[slot=input-otp-slot]:rounded-none *:data-[slot=input-otp-slot]:border-0 *:data-[slot=input-otp-slot]:shadow-none *:dark:data-[slot=input-otp-slot]:bg-transparent\">\n          {[0, 1, 2, 3].map((i) => (\n            <InputOTPSlot\n              key={i}\n              index={i}\n              className=\"text-muted-foreground before:bg-muted-foreground/30 after:bg-primary data-[filled=true]:text-primary relative h-12 w-12 text-center text-lg transition-colors duration-200 before:absolute before:bottom-0 before:left-0 before:h-[2px] before:w-full after:absolute after:bottom-0 after:left-0 after:h-[2px] after:w-full after:origin-left after:scale-x-0 after:transition-transform after:duration-300 focus-visible:outline-none data-[active=true]:after:scale-x-100 data-[filled=true]:after:!scale-x-100 data-[filled=true]:after:scale-x-100 data-[filled=true]:after:transition-none\"\n            />\n          ))}\n        </InputOTPGroup>\n      </InputOTP>\n    </div>\n  );\n};\n\nexport default InputOtp8;\n"
    }
  ]
}
