{"$schema":"https://ui.shadcn.com/schema/registry-item.json","name":"shadcn-studio/input-otp-02","type":"registry:component","title":"Input OTP 2","description":"A 4-character alphanumeric OTP input field supporting both letters and numbers","registryDependencies":["input-otp","label"],"files":[{"path":"src/registry/new-york/components/input-otp/input-otp-02.tsx","content":"'use client'\n\nimport { useId } from 'react'\n\nimport { REGEXP_ONLY_DIGITS_AND_CHARS } 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 InputOTPAlphanumericDemo = () => {\n  const id = useId()\n\n  return (\n    <div className='space-y-3'>\n      <Label htmlFor={id}>Input OTP Alphanumeric</Label>\n      <InputOTP id={id} maxLength={4} pattern={REGEXP_ONLY_DIGITS_AND_CHARS}>\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 InputOTPAlphanumericDemo\n","type":"registry:component","target":"components/shadcn-studio/input-otp/input-otp-02.tsx"}]}