{"$schema":"https://ui.shadcn.com/schema/registry-item.json","name":"shadcn-studio/input-otp-03","type":"registry:component","title":"Input OTP 3","description":"A 4-digit OTP input field with resend functionality and helper text","registryDependencies":["input-otp","label"],"files":[{"path":"src/registry/new-york/components/input-otp/input-otp-03.tsx","content":"import { useId } from 'react'\n\nimport { InputOTP, InputOTPGroup, InputOTPSlot } from '@/registry/new-york/ui/input-otp'\nimport { Label } from '@/registry/new-york/ui/label'\n\nconst InputOTPWithResendDemo = () => {\n  const id = useId()\n\n  return (\n    <div className='space-y-3'>\n      <Label htmlFor={id}>Input OTP with resend</Label>\n      <InputOTP id={id} maxLength={4}>\n        <InputOTPGroup>\n          <InputOTPSlot index={0} />\n          <InputOTPSlot index={1} />\n          <InputOTPSlot index={2} />\n          <InputOTPSlot index={3} />\n        </InputOTPGroup>\n      </InputOTP>\n      <p className='text-muted-foreground text-xs'>\n        Didn&apos;t get the code?{' '}\n        <a href='#' className='text-primary hover:underline'>\n          Resend code\n        </a>\n      </p>\n    </div>\n  )\n}\n\nexport default InputOTPWithResendDemo\n","type":"registry:component","target":"components/shadcn-studio/input-otp/input-otp-03.tsx"}]}