Component referenceVersion Draft
Input OTP
InputOTP displays one logical input as six visual slots. The slots do not create six separate focus stops.
Design notes
Pasting and keyboard editing belong to the input; read-only state must also prevent paste mutations. Six slots describe this component, not a production authentication policy.
Input OTP design
Inspect the original component, variants and visual details.
Playground
Playgrounddemo.tsx
API
InputOTP
A controlled six-digit input with visual slots. Native input attributes and ref target the input; className styles the outer field. Type, numeric input mode and one-time-code autocomplete are fixed.
No custom imperative methods. Event callbacks are listed as properties.