An open API service indexing awesome lists of open source software.

https://github.com/contigen/otp-input

An event-based, numbers-only, one-time password component with SMS autofill support using the WebOTP API
https://github.com/contigen/otp-input

otp react typescript webotp

Last synced: about 2 months ago
JSON representation

An event-based, numbers-only, one-time password component with SMS autofill support using the WebOTP API

Awesome Lists containing this project

README

          

## One-time-password Component

![word cloud forming the text 'otp-input' in ASCII format](./src/assets/otp-input.png)

An OTP input written in React + TS.

Devoid of `useState` calls.
All you get from a regular input:

- Paste works excellently, inputting only numbers from the clipboard.
- Focus works as expected, and updates per the in-line edit.

Autofill from SMS using the WebOTP API to boot.