/otp-input

An event-based, numbers-only, one-time password component with SMS autofill support

Primary LanguageTypeScript

One-time-password Component

An OTP input written in React + TS.

Devoid of useState calls - no React hook used. 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.