InputOTPControlled() — supabase Function Reference
Architecture documentation for the InputOTPControlled() function in input-otp-controlled.tsx from the supabase codebase.
Entity Profile
Relationship Graph
Source Code
apps/design-system/registry/default/example/input-otp-controlled.tsx lines 6–26
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
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free