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 4f7f30f7_ca68_78c8_391d_df2c789f80ae["InputOTPWithSeparator()"] a8900f7f_60fe_355a_9ca4_06186586e61b["input-otp-example.tsx"] 4f7f30f7_ca68_78c8_391d_df2c789f80ae -->|defined in| a8900f7f_60fe_355a_9ca4_06186586e61b style 4f7f30f7_ca68_78c8_391d_df2c789f80ae fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
apps/v4/registry/bases/base/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/base/examples/input-otp-example.tsx.
Where is InputOTPWithSeparator() defined?
InputOTPWithSeparator() is defined in apps/v4/registry/bases/base/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