OtpInput
The OTP input is used for MFA procedure of authenticating users by a one-time password.
Usage
Basic
Show code
Basic usage examples of BitOtpInput, including different lengths, disabled state, auto-shift, and autofocus.
Basic
Disabled
Length = 4
AutoShift
AutoFocus
Label
Show code
Label can express the title of the otp inputs.
Label:
LabelTemplate:
Type
Show code
Set different input types for the OTP input: text, number, and password.
Directions
Show code
Demonstrating various layout directions for BitOtpInput: default, reversed, vertical, and reversed vertical.
Binding
Show code
Examples of one-way and two-way data binding with BitOtpInput.
Events
Show code
Handle various events in BitOtpInput, including change, fill, focus, input, keydown, and paste events.
OnChange value:
OnFill value:
Focus type:
Input index:
Focus type:
Input index:
Value:
Input index:
Key & Code: [] []
Input index:
Focus type:
Input index:
Validation
Show code
Use data annotations to validate the BitOtpInput component in a form submission scenario.
Size
Show code
Varying sizes for inputs tailored to meet diverse design needs, ensuring flexibility and visual hierarchy within your interface.
Style & Class
Show code
Explore styling and class customization for BitOtpInput, including component styles, custom classes, and detailed styles.
Component's Style & Class:
Styles & Classes:
RTL
Show code
Use BitOtpInput in right-to-left (RTL).
API
BitOtpInput parameters
Name |
Type |
Default value |
Description |
---|---|---|---|
BitOtpInput public members
Name |
Type |
Default value |
Description |
---|---|---|---|
BitInputBase parameters
Name |
Type |
Default value |
Description |
---|---|---|---|
BitInputBase public members
Name |
Type |
Default value |
Description |
---|---|---|---|
BitComponentBase parameters
Name |
Type |
Default value |
Description |
---|---|---|---|
BitComponentBase public members
Name |
Type |
Default value |
Description |
---|---|---|---|
BitOtpInputClassStyles properties
Name |
Type |
Default value |
Description |
---|---|---|---|
BitSize enum
Name |
Value |
Description |
---|---|---|
BitInputType enum
Name |
Value |
Description |
---|---|---|
BitVisibility enum
Name |
Value |
Description |
---|---|---|
BitDir enum
Name |
Value |
Description |
---|---|---|
- On this page