OtpInput
The OTP input is used for MFA procedure of authenticating users by a one-time password.
Usage
Basic
Basic usage examples of BitOtpInput, including different lengths, disabled state, auto-shift, and autofocus.
Basic
Disabled
Length = 4
AutoShift
AutoFocus
Label
Label can express the title of the otp inputs.
Label:
LabelTemplate:
Type
Set different input types for the OTP input: text, number, and password.
Directions
Demonstrating various layout directions for BitOtpInput: default, reversed, vertical, and reversed vertical.
Binding
Examples of one-way and two-way data binding with BitOtpInput.
Events
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
Use data annotations to validate the BitOtpInput component in a form submission scenario.
Size
Varying sizes for inputs tailored to meet diverse design needs, ensuring flexibility and visual hierarchy within your interface.
Style & Class
Explore styling and class customization for BitOtpInput, including component styles, custom classes, and detailed styles.
Component's Style & Class:
Styles & Classes:
RTL
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