{
  "$schema": "https://ui.shadcn.com/schema/registry-item.json",
  "name": "otp-input",
  "title": "One-time code",
  "author": "superzero11 <https://github.com/superzero11/uiset>",
  "description": "A one-time code field with a slot per character.",
  "dependencies": [
    "@ui-sdk/core@0.1.0-beta.5",
    "@ui-sdk/react@0.1.0-beta.5"
  ],
  "registryDependencies": [
    "https://uiset.dev/r/uiset.json"
  ],
  "files": [
    {
      "path": "registry/uiset/ui/otp-input.tsx",
      "content": "\"use client\"\n\nimport {\n  OTPInput as OTPInputRoot,\n  OTPInputGroup,\n  OTPInputSlot,\n} from \"@ui-sdk/react/otp-input\"\nimport type * as React from \"react\"\n\nfunction OTPInput({ children, ...props }: React.ComponentProps<typeof OTPInputRoot>) {\n  const length = props.maxLength ?? 6\n  return (\n    <OTPInputRoot {...props}>\n      {children ?? (\n        <OTPInputGroup>\n          {Array.from({ length }, (_, index) => (\n            <OTPInputSlot key={index} index={index} />\n          ))}\n        </OTPInputGroup>\n      )}\n    </OTPInputRoot>\n  )\n}\n\nexport { OTPInput, OTPInputGroup, OTPInputSlot }\nexport { OTPInputSeparator, createOTPInputController } from \"@ui-sdk/react/otp-input\"\n",
      "type": "registry:ui",
      "target": "@ui/otp-input.tsx"
    }
  ],
  "type": "registry:ui"
}