{
  "$schema": "https://ui.shadcn.com/schema/registry-item.json",
  "extends": "none",
  "name": "input-otp-controlled-example",
  "title": "Input Otp Controlled",
  "description": "input-otp-controlled-example",
  "registryDependencies": [
    "https://intentui.com/r/field",
    "https://intentui.com/r/input-otp"
  ],
  "files": [
    {
      "path": "src/components/examples/forms/input-otp/input-otp-controlled-example.tsx",
      "content": "\"use client\"\n\nimport { useState } from \"react\"\nimport { Description } from \"@/components/ui/field\"\nimport { InputOTP, InputOTPControl, InputOTPGroup, InputOTPSlot } from \"@/components/ui/input-otp\"\n\nexport default function InputOtpControlledDemo() {\n  const [value, setValue] = useState(\"\")\n  return (\n    <InputOTP maxLength={6} value={value} onChange={setValue}>\n      <InputOTPControl>\n        <InputOTPGroup>\n          {[...Array(6)].map((_, index) => (\n            <InputOTPSlot key={index} index={index} />\n          ))}\n        </InputOTPGroup>\n      </InputOTPControl>\n      <Description>\n        {value === \"\" ? \"Enter your one-time password.\" : `Your one-time password is: ${value}`}\n      </Description>\n    </InputOTP>\n  )\n}\n",
      "type": "registry:page",
      "target": "app/input-otp-controlled-example/page.tsx"
    }
  ],
  "type": "registry:page"
}