@c2n/otp-input
v0.0.24
Published
A form-associated, themeable one-time-code field that renders one cell per character.
Maintainers
Readme
OTP Input
A form-associated, themeable one-time-code field that renders one cell per character.
npm install @c2n/otp-input<c2-otp-input name="code" length="6" required aria-label="Verification code"></c2-otp-input>A single native input sits over the cells, so paste, undo and SMS autofill (autocomplete="one-time-code") work as they do in a
plain text field. Listen for complete to submit as soon as every cell is filled.
