input-otp-form.tsx — ui Source File
Architecture documentation for input-otp-form.tsx, a tsx file in the ui codebase. 5 imports, 0 dependents.
Entity Profile
Dependency Diagram
graph LR 01da88fc_080d_5d30_e524_74afe64a9b63["input-otp-form.tsx"] 4544fa74_9b37_0912_c55e_f4ff161b8e83["button"] 01da88fc_080d_5d30_e524_74afe64a9b63 --> 4544fa74_9b37_0912_c55e_f4ff161b8e83 a66f2388_87f1_5188_51e6_9a4b91cfd618["card"] 01da88fc_080d_5d30_e524_74afe64a9b63 --> a66f2388_87f1_5188_51e6_9a4b91cfd618 e6c524b5_d047_d4f9_50b2_7f100d612cb2["field"] 01da88fc_080d_5d30_e524_74afe64a9b63 --> e6c524b5_d047_d4f9_50b2_7f100d612cb2 0b8d5055_3927_87e7_3c2f_dac1727e0600["input-otp"] 01da88fc_080d_5d30_e524_74afe64a9b63 --> 0b8d5055_3927_87e7_3c2f_dac1727e0600 d39cd1e4_1b2d_9aa2_1d29_fd0b4bfb61c3["lucide-react"] 01da88fc_080d_5d30_e524_74afe64a9b63 --> d39cd1e4_1b2d_9aa2_1d29_fd0b4bfb61c3 style 01da88fc_080d_5d30_e524_74afe64a9b63 fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
import { Button } from "@/examples/base/ui/button"
import {
Card,
CardContent,
CardDescription,
CardFooter,
CardHeader,
CardTitle,
} from "@/examples/base/ui/card"
import { Field, FieldDescription, FieldLabel } from "@/examples/base/ui/field"
import {
InputOTP,
InputOTPGroup,
InputOTPSeparator,
InputOTPSlot,
} from "@/examples/base/ui/input-otp"
import { RefreshCwIcon } from "lucide-react"
export function InputOTPForm() {
return (
<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>
<Field>
<div className="flex items-center justify-between">
<FieldLabel htmlFor="otp-verification">
Verification code
</FieldLabel>
<Button variant="outline" size="xs">
<RefreshCwIcon />
Resend Code
</Button>
</div>
<InputOTP maxLength={6} id="otp-verification" required>
<InputOTPGroup className="*:data-[slot=input-otp-slot]:h-12 *: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 className="mx-2" />
<InputOTPGroup className="*:data-[slot=input-otp-slot]:h-12 *: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>
</CardContent>
<CardFooter>
<Field>
<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>
</Field>
</CardFooter>
</Card>
)
}
Domain
Subdomains
Functions
Dependencies
- button
- card
- field
- input-otp
- lucide-react
Source
Frequently Asked Questions
What does input-otp-form.tsx do?
input-otp-form.tsx is a source file in the ui codebase, written in tsx. It belongs to the DocumentationAtlas domain, SearchAPI subdomain.
What functions are defined in input-otp-form.tsx?
input-otp-form.tsx defines 1 function(s): InputOTPForm.
What does input-otp-form.tsx depend on?
input-otp-form.tsx imports 5 module(s): button, card, field, input-otp, lucide-react.
Where is input-otp-form.tsx in the architecture?
input-otp-form.tsx is located at apps/v4/examples/base/input-otp-form.tsx (domain: DocumentationAtlas, subdomain: SearchAPI, directory: apps/v4/examples/base).
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free