Input OTP
An input component for one-time password authentication codes.
When To Use
Use the Input OTP component when you need to:
- Implement one-time password or verification code inputs
- Create user-friendly authentication flows
- Handle multi-factor authentication
- Build secure verification processes
- Collect numeric codes sent via SMS, email, or authenticator apps
- Implement PIN entry interfaces
The Input OTP component provides a specialized interface for entering authentication codes with a focus on usability and accessibility.
Examples
Verification Code
Enter the 6-digit code sent to your device
PIN Entry
Enter your 4-digit PIN code
4 digits remaining
Product Key
Enter your product activation key
Authentication Code
Enter the code from your authenticator app
Format: XXX-XXX
Props
Prop | Type | Default |
---|---|---|
$$typeof | symbol | - |
displayName? | string | - |
propTypes? | any | - |
Prop | Type | Default |
---|---|---|
$$typeof | symbol | - |
displayName? | string | - |
propTypes? | any | - |
Prop | Type | Default |
---|---|---|
$$typeof | symbol | - |
displayName? | string | - |
propTypes? | any | - |
Prop | Type | Default |
---|---|---|
$$typeof | symbol | - |
displayName? | string | - |
propTypes? | any | - |