Skip to content

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

Notifications You must be signed in to change notification settings

contigen/otp-input

Repository files navigation

One-time-password Component

word cloud forming the text 'otp-input' in ASCII format

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.

About

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

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published