InputOTPWithSeparator() — ui Function Reference
Architecture documentation for the InputOTPWithSeparator() function in input-otp-demo.tsx from the ui codebase.
Entity Profile
Dependency Diagram
graph TD f231b608_0051_e3c5_46e0_dca4a578cd7e["InputOTPWithSeparator()"] 1b6bdf38_9d26_f386_4da3_bbd14a0dfa28["input-otp-demo.tsx"] f231b608_0051_e3c5_46e0_dca4a578cd7e -->|defined in| 1b6bdf38_9d26_f386_4da3_bbd14a0dfa28 style f231b608_0051_e3c5_46e0_dca4a578cd7e fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
apps/v4/app/(internal)/sink/components/input-otp-demo.tsx lines 64–93
function InputOTPWithSeparator() {
const [value, setValue] = React.useState("123456")
return (
<div className="grid gap-2">
<Label htmlFor="with-separator">With Separator</Label>
<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>
</div>
)
}
Domain
Subdomains
Source
Frequently Asked Questions
What does InputOTPWithSeparator() do?
InputOTPWithSeparator() is a function in the ui codebase, defined in apps/v4/app/(internal)/sink/components/input-otp-demo.tsx.
Where is InputOTPWithSeparator() defined?
InputOTPWithSeparator() is defined in apps/v4/app/(internal)/sink/components/input-otp-demo.tsx at line 64.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free