input-otp-pattern.tsx — ui Source File
Architecture documentation for input-otp-pattern.tsx, a tsx file in the ui codebase. 3 imports, 0 dependents.
Entity Profile
Dependency Diagram
graph LR 7065ef0d_ae0a_87a1_7c25_e653e59e51f7["input-otp-pattern.tsx"] b5f68436_cf6b_fba3_fb29_abf27fd13442["field"] 7065ef0d_ae0a_87a1_7c25_e653e59e51f7 --> b5f68436_cf6b_fba3_fb29_abf27fd13442 a933c65c_9a12_8beb_8248_5ad742c1d84f["input-otp"] 7065ef0d_ae0a_87a1_7c25_e653e59e51f7 --> a933c65c_9a12_8beb_8248_5ad742c1d84f 46c758ca_dd64_66c4_37b9_b30acc3c853c["input-otp"] 7065ef0d_ae0a_87a1_7c25_e653e59e51f7 --> 46c758ca_dd64_66c4_37b9_b30acc3c853c style 7065ef0d_ae0a_87a1_7c25_e653e59e51f7 fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
"use client"
import { Field, FieldLabel } from "@/examples/radix/ui/field"
import {
InputOTP,
InputOTPGroup,
InputOTPSlot,
} from "@/examples/radix/ui/input-otp"
import { REGEXP_ONLY_DIGITS } from "input-otp"
export function InputOTPPattern() {
return (
<Field className="w-fit">
<FieldLabel htmlFor="digits-only">Digits Only</FieldLabel>
<InputOTP id="digits-only" maxLength={6} pattern={REGEXP_ONLY_DIGITS}>
<InputOTPGroup>
<InputOTPSlot index={0} />
<InputOTPSlot index={1} />
<InputOTPSlot index={2} />
<InputOTPSlot index={3} />
<InputOTPSlot index={4} />
<InputOTPSlot index={5} />
</InputOTPGroup>
</InputOTP>
</Field>
)
}
Domain
Subdomains
Functions
Dependencies
- field
- input-otp
- input-otp
Source
Frequently Asked Questions
What does input-otp-pattern.tsx do?
input-otp-pattern.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-pattern.tsx?
input-otp-pattern.tsx defines 1 function(s): InputOTPPattern.
What does input-otp-pattern.tsx depend on?
input-otp-pattern.tsx imports 3 module(s): field, input-otp, input-otp.
Where is input-otp-pattern.tsx in the architecture?
input-otp-pattern.tsx is located at apps/v4/examples/radix/input-otp-pattern.tsx (domain: DocumentationAtlas, subdomain: SearchAPI, directory: apps/v4/examples/radix).
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free