InputOTPControlled() — ui Function Reference
Architecture documentation for the InputOTPControlled() function in input-otp-controlled.tsx from the ui codebase.
Entity Profile
Dependency Diagram
graph TD 555d3045_977f_b12d_66a8_7ad47c79cd3f["InputOTPControlled()"] 24dffedc_1ec2_f66b_1826_8d891f24cd3a["input-otp-controlled.tsx"] 555d3045_977f_b12d_66a8_7ad47c79cd3f -->|defined in| 24dffedc_1ec2_f66b_1826_8d891f24cd3a style 555d3045_977f_b12d_66a8_7ad47c79cd3f fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
apps/v4/registry/new-york-v4/examples/input-otp-controlled.tsx lines 11–39
export default function InputOTPControlled() {
const [value, setValue] = React.useState("")
return (
<div className="space-y-2">
<InputOTP
maxLength={6}
value={value}
onChange={(value) => setValue(value)}
>
<InputOTPGroup>
<InputOTPSlot index={0} />
<InputOTPSlot index={1} />
<InputOTPSlot index={2} />
<InputOTPSlot index={3} />
<InputOTPSlot index={4} />
<InputOTPSlot index={5} />
</InputOTPGroup>
</InputOTP>
<div className="text-center text-sm">
{value === "" ? (
<>Enter your one-time password.</>
) : (
<>You entered: {value}</>
)}
</div>
</div>
)
}
Domain
Subdomains
Source
Frequently Asked Questions
What does InputOTPControlled() do?
InputOTPControlled() is a function in the ui codebase, defined in apps/v4/registry/new-york-v4/examples/input-otp-controlled.tsx.
Where is InputOTPControlled() defined?
InputOTPControlled() is defined in apps/v4/registry/new-york-v4/examples/input-otp-controlled.tsx at line 11.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free