Forms
OTP Input
Keyboard-optimized verification code input with auto-focus and paste support.
2FA Verification Flow
A complete real-world simulation of a two-factor authentication flow. Includes automatic block separators, loading states, and success/error feedback.
Secure Verification
Enter the 6-digit code sent to your mobile device. Tip: Try "123456"
-
Custom Formatting
Configure lengths, separators, and input masking (text, number, or password).
•
/
Properties
| Prop | Type | Default | Description |
|---|---|---|---|
length | number | 4 | Total amount of character input boxes in the sequence |
value | string | — | Raw data string or URL to encode into the QR grid |
onChange | (value: string) => void | — | Callback function triggered when the value changes |
onComplete | (value: string) => void | — | Callback triggered when all fields are successfully entered |
disabled | boolean | false | If true, disables all user interaction and applies faded opacity |
type | 'text' | 'number' | 'password' | 'text' | Semantic HTML input type classification (text, password, email, etc.) |
separator | React.ReactNode | — | Custom separator character or element between breadcrumb links |
separatorIndex | number | 2 | Configures the separatorIndex option |
status | 'success' | 'error' | 'idle' | 'idle' | Configures the status option |
loading | boolean | false | If true, displays an animated loading spinner and disables interactions |