InputOTPWithSeparator() — ui Function Reference
Architecture documentation for the InputOTPWithSeparator() function in input-otp-example.tsx from the ui codebase.
Entity Profile
Dependency Diagram
graph TD 7ec5fe4b_df44_b853_6ee2_e3524a61e11c["InputOTPWithSeparator()"] 4aa10f6b_4776_aa23_5fe8_83405d831575["input-otp-example.tsx"] 7ec5fe4b_df44_b853_6ee2_e3524a61e11c -->|defined in| 4aa10f6b_4776_aa23_5fe8_83405d831575 style 7ec5fe4b_df44_b853_6ee2_e3524a61e11c fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
apps/v4/registry/bases/radix/examples/input-otp-example.tsx lines 91–122
function InputOTPWithSeparator() {
const [value, setValue] = React.useState("123456")
return (
<Example title="With Separator">
<Field>
<FieldLabel htmlFor="with-separator">With Separator</FieldLabel>
<InputOTP
id="with-separator"
maxLength={6}
value={value}
onChange={setValue}
>
<InputOTPGroup>
<InputOTPSlot index={0} />
<InputOTPSlot index={1} />
</InputOTPGroup>
<InputOTPSeparator />
<InputOTPGroup>
<InputOTPSlot index={2} />
<InputOTPSlot index={3} />
</InputOTPGroup>
<InputOTPSeparator />
<InputOTPGroup>
<InputOTPSlot index={4} />
<InputOTPSlot index={5} />
</InputOTPGroup>
</InputOTP>
</Field>
</Example>
)
}
Domain
Subdomains
Source
Frequently Asked Questions
What does InputOTPWithSeparator() do?
InputOTPWithSeparator() is a function in the ui codebase, defined in apps/v4/registry/bases/radix/examples/input-otp-example.tsx.
Where is InputOTPWithSeparator() defined?
InputOTPWithSeparator() is defined in apps/v4/registry/bases/radix/examples/input-otp-example.tsx at line 91.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free