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
- Host: GitHub
- URL: https://github.com/contigen/otp-input
- Owner: contigen
- Created: 2023-12-23T02:12:04.000Z (over 2 years ago)
- Default Branch: main
- Last Pushed: 2024-07-26T08:30:35.000Z (almost 2 years ago)
- Last Synced: 2025-03-04T08:29:19.381Z (over 1 year ago)
- Topics: otp, react, typescript, webotp
- Language: TypeScript
- Homepage: https://otpinput.vercel.app
- Size: 590 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
## One-time-password Component

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.