One-time code
An OTP input for React that looks like separate boxes but behaves as one field. Pasting a code, browser autofill and backspace all work as you would expect. Choose four or six digits, adjust the corners, and set whether a full code is accepted or rejected. Made for two-factor sign in, phone verification and password reset screens.
Type · free, with full source
One-time code props
| Name | Type | Default | Description |
|---|---|---|---|
answer | string | "Accept" | What a full code gets back. One of Accept, Reject. |
length | string | "4" | Length. One of 4, 6. |
corner | number | 12px | Corner. From 0 to 22px. |
Free under MIT. Licence