DEV Community

MD Taseen Khan
MD Taseen Khan

Posted on • Originally published at reactjsexample.com on

Awesome React Hook for One-time password (OTP) Input

use-otp-input

Awesome React Hook for One-time password (OTP) Input

🚀 Awesome React Hook for One-time password (OTP) Input

Live Demo

Features

  • 🦄 Input more intuitive, just like plain input element, including paste text
  • ✨ Support Backspace and Delete keys, even shortcut with Ctrl key
  • 🎈 Support move caret by Home, End, ArrowLeft and ArrowRight keys

Build & Publish

  • npm run build
  • npx changeset
  • npx changeset version
  • git commit
  • npx changeset publish
  • git push --follow-tags

changeset prerelease doc

License

MIT License © 2023 Yuns

GitHub

View Github

Top comments (0)