{"$schema":"https://ui.shadcn.com/schema/registry-item.json","name":"shadcn-studio/input-otp-01","type":"registry:component","title":"Input OTP 1","description":"A 4-digit numeric OTP input field with individual slots for each digit","registryDependencies":["input-otp","label"],"files":[{"path":"src/registry/new-york/components/input-otp/input-otp-01.tsx","content":"'use client'\n\nimport { useId } from 'react'\n\nimport { REGEXP_ONLY_DIGITS } from 'input-otp'\n\nimport { InputOTP, InputOTPGroup, InputOTPSlot } from '@/registry/new-york/ui/input-otp'\nimport { Label } from '@/registry/new-york/ui/label'\n\nconst InputOTPNumberDemo = () => {\n  const id = useId()\n\n  return (\n    <div className='space-y-3'>\n      <Label htmlFor={id}>Input OTP number</Label>\n      <InputOTP id={id} maxLength={4} pattern={REGEXP_ONLY_DIGITS}>\n        <InputOTPGroup>\n          <InputOTPSlot index={0} />\n          <InputOTPSlot index={1} />\n          <InputOTPSlot index={2} />\n          <InputOTPSlot index={3} />\n        </InputOTPGroup>\n      </InputOTP>\n    </div>\n  )\n}\n\nexport default InputOTPNumberDemo\n","type":"registry:component","target":"components/shadcn-studio/input-otp/input-otp-01.tsx"}]}