Security code
SecurityCodeControlCollect verification codes, PINs and short references one character per box.
Overview
SecurityCodeControl is a Blazor one-time-code input: one box per character for verification codes and PINs, joined into one bound Value. Use it for two-step sign-in, confirming an email address or typing an employee id; OnComplete fires when the last box is filled, so you can check the code without a Submit button. Length sets the number of boxes, and Type allows digits only or letters too.
Examples
#Verification code
Type the six digits (the demo code is 492018), with Tab between boxes: OnComplete checks the code once every box is filled, and a match sets Disabled to lock the boxes.
We texted a code to Hermione Ranger's phone ending 0142. Enter it to confirm leave request LR-0107.
0 of 6 digits entered
#Letters and digits
Look up an employee by id: Type set to AlphaNumeric accepts letters as well as digits, and Length sets the number of boxes.
Type an employee id without its hyphen: three letters and four digits, such as EMP0017, EMP0042 or EMP0051.
0 of 7 characters entered