Input OTP uses a set of InputText components, refer to the InputText component for more information about the screen reader support.
+Key | +Function | +
---|---|
tab | +Moves focus to the input otp. | +
right arrow | +Moves focus to the next input element. | +
left arrow | +Moves focus to the previous input element. | +
backspace | +Deletes the input and moves focus to the previous input element. | +
Two-way value binding is defined using ngModel. The number of characters is defined with the length property, which is set to 4 by default.
+When integerOnly is present, only integers can be accepted as input.
+Enable the mask option to hide the values in the input fields.
+A sample UI implementation with templating and additional elements.
+Please enter the code sent to your phone.
+Please enter the code sent to your phone.
+Please enter the code sent to your phone.
+Define a template with your own UI elements with bindings to the provided events and attributes to replace the default design.
+