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 4d3abe0b_6656_34ab_58a7_ea9f03691246["InputOTPControlled()"] 320fa8b8_c243_97b8_5404_f1d33ce8ec46["input-otp-controlled.tsx"] 4d3abe0b_6656_34ab_58a7_ea9f03691246 -->|defined in| 320fa8b8_c243_97b8_5404_f1d33ce8ec46 style 4d3abe0b_6656_34ab_58a7_ea9f03691246 fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
apps/v4/examples/radix/input-otp-controlled.tsx lines 10–38
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/examples/radix/input-otp-controlled.tsx.
Where is InputOTPControlled() defined?
InputOTPControlled() is defined in apps/v4/examples/radix/input-otp-controlled.tsx at line 10.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free