InputOTPForm() — ui Function Reference
Architecture documentation for the InputOTPForm() function in input-otp-example.tsx from the ui codebase.
Entity Profile
Dependency Diagram
graph TD 36902edd_325e_9356_7729_8030da7f9e91["InputOTPForm()"] 4aa10f6b_4776_aa23_5fe8_83405d831575["input-otp-example.tsx"] 36902edd_325e_9356_7729_8030da7f9e91 -->|defined in| 4aa10f6b_4776_aa23_5fe8_83405d831575 style 36902edd_325e_9356_7729_8030da7f9e91 fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
apps/v4/registry/bases/radix/examples/input-otp-example.tsx lines 226–292
function InputOTPForm() {
return (
<Example title="Form">
<Card className="mx-auto max-w-md">
<CardHeader>
<CardTitle>Verify your login</CardTitle>
<CardDescription>
Enter the verification code we sent to your email address:{" "}
<span className="font-medium">m@example.com</span>.
</CardDescription>
</CardHeader>
<CardContent>
<form>
<Field>
<div className="flex items-center justify-between">
<FieldLabel htmlFor="otp-verification">
Verification code
</FieldLabel>
<Button variant="outline" size="xs">
<IconPlaceholder
lucide="RefreshCwIcon"
hugeicons="RefreshIcon"
tabler="IconRefresh"
phosphor="ArrowClockwiseIcon"
remixicon="RiRefreshLine"
data-icon="inline-start"
/>
Resend Code
</Button>
</div>
<InputOTP maxLength={6} id="otp-verification" required>
<InputOTPGroup className="style-nova:*:data-[slot=input-otp-slot]:h-12 style-nova:*:data-[slot=input-otp-slot]:w-11 style-vega:*:data-[slot=input-otp-slot]:h-16 style-maia:*:data-[slot=input-otp-slot]:h-16 style-vega:*:data-[slot=input-otp-slot]:w-12 style-maia:*:data-[slot=input-otp-slot]:w-12 style-mira:*:data-[slot=input-otp-slot]:h-12 style-lyra:*:data-[slot=input-otp-slot]:h-12 style-lyra:*:data-[slot=input-otp-slot]:w-11 style-mira:*:data-[slot=input-otp-slot]:w-11 *:data-[slot=input-otp-slot]:text-xl">
<InputOTPSlot index={0} />
<InputOTPSlot index={1} />
<InputOTPSlot index={2} />
</InputOTPGroup>
<InputOTPSeparator />
<InputOTPGroup className="style-nova:*:data-[slot=input-otp-slot]:h-12 style-nova:*:data-[slot=input-otp-slot]:w-11 style-vega:*:data-[slot=input-otp-slot]:h-16 style-maia:*:data-[slot=input-otp-slot]:h-16 style-vega:*:data-[slot=input-otp-slot]:w-12 style-maia:*:data-[slot=input-otp-slot]:w-12 style-mira:*:data-[slot=input-otp-slot]:h-12 style-lyra:*:data-[slot=input-otp-slot]:h-12 style-lyra:*:data-[slot=input-otp-slot]:w-11 style-mira:*:data-[slot=input-otp-slot]:w-11 *:data-[slot=input-otp-slot]:text-xl">
<InputOTPSlot index={3} />
<InputOTPSlot index={4} />
<InputOTPSlot index={5} />
</InputOTPGroup>
</InputOTP>
<FieldDescription>
<a href="#">I no longer have access to this email address.</a>
</FieldDescription>
</Field>
</form>
</CardContent>
<CardFooter className="flex-col gap-2">
<Button type="submit" className="w-full">
Verify
</Button>
<div className="text-muted-foreground text-sm">
Having trouble signing in?{" "}
<a
href="#"
className="hover:text-primary underline underline-offset-4 transition-colors"
>
Contact support
</a>
</div>
</CardFooter>
</Card>
</Example>
)
}
Domain
Subdomains
Source
Frequently Asked Questions
What does InputOTPForm() do?
InputOTPForm() is a function in the ui codebase, defined in apps/v4/registry/bases/radix/examples/input-otp-example.tsx.
Where is InputOTPForm() defined?
InputOTPForm() is defined in apps/v4/registry/bases/radix/examples/input-otp-example.tsx at line 226.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free