{
  "$schema": "https://ui.shadcn.com/schema/registry-item.json",
  "name": "input-otp-6",
  "type": "registry:component",
  "title": "Input OTP 6",
  "description": "Input OTP 6. 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": [
    "react-icons"
  ],
  "registryDependencies": [
    "input-otp",
    "label"
  ],
  "files": [
    {
      "path": "components/watermelon/input-otp-6.tsx",
      "type": "registry:component",
      "content": "'use client';\n\nimport { useId } from 'react';\nimport { HiShieldCheck } from 'react-icons/hi2';\n\nimport {\n  InputOTP,\n  InputOTPGroup,\n  InputOTPSlot,\n} from '@/components/base-ui/input-otp';\nimport { Label } from '@/components/base-ui/label';\n\nconst InputOtp6 = () => {\n  const id = useId();\n\n  return (\n    <div className=\"max-w-sm space-y-2\">\n      <div className=\"flex items-center justify-start gap-2\">\n        <HiShieldCheck className=\"text-primary h-5 w-5\" />\n        <Label htmlFor={id} className=\"text-base font-semibold\">\n          Secure verification\n        </Label>\n      </div>\n\n      <InputOTP id={id} maxLength={4} className=\"w-full\">\n        <InputOTPGroup className=\"flex justify-center gap-3\">\n          {[0, 1, 2, 3].map((i) => (\n            <InputOTPSlot\n              key={i}\n              index={i}\n              className=\"bg-background hover:border-primary/60 data-[active=true]:border-primary data-[active=true]:ring-primary/30 h-10 w-10 rounded-lg border text-lg font-medium transition-all focus-visible:outline-none data-[active=true]:ring-2\"\n            />\n          ))}\n        </InputOTPGroup>\n      </InputOTP>\n    </div>\n  );\n};\n\nexport default InputOtp6;\n"
    }
  ]
}
