{
  "$schema": "https://ui.shadcn.com/schema/registry-item.json",
  "name": "input-otp-pin-code",
  "title": "OTP input for PIN codes",
  "description": "OTP input for PIN codes, built from the input otp component.",
  "dependencies": [
    "input-otp"
  ],
  "registryDependencies": [
    "field",
    "input-otp"
  ],
  "files": [
    {
      "path": "registry/patterns/input-otp-pin-code/input-otp-pin-code.tsx",
      "content": "/**\n * OTP input for PIN codes - adapted for tealmac UI from the ReUI example \"c-input-otp-5\"\n * (https://github.com/keenthemes/reui), MIT License, Copyright (c) 2025\n * Keenthemes Inc. The full licence text is in THIRD_PARTY_NOTICES.md.\n * Changes: tealmac UI import paths and theme tokens, lucide icons, logical\n * (RTL-safe) spacing and alignment, reduced-motion support and sample\n * content.\n */\nimport { REGEXP_ONLY_DIGITS } from \"input-otp\"\n\nimport { Field, FieldDescription, FieldLabel } from \"@/components/ui/field\"\nimport {\n  InputOTP,\n  InputOTPGroup,\n  InputOTPSlot,\n} from \"@/components/ui/input-otp\"\n\nexport function InputOtpPinCode() {\n  return (\n    <div className=\"flex items-center justify-center\">\n      <Field>\n        <FieldLabel htmlFor=\"four-digits\">4-Digit PIN</FieldLabel>\n        <FieldDescription>Common pattern for PIN codes.</FieldDescription>\n        <InputOTP id=\"four-digits\" 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      </Field>\n    </div>\n  )\n}\n",
      "type": "registry:block"
    }
  ],
  "type": "registry:block"
}