Important: This documentation covers Yarn 1 (Classic).
For Yarn 2+ docs and migration guide, see yarnpkg.com.

Package detail

use-otp-input

yunsii37MIT0.0.4TypeScript support: included

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

react, hooks, otp, one-time-password, one-time-code, input, react-hooks

readme

English | 简体中文

use-otp-input

NPM version

🚀 用于开发一次性密码输入(OTP)组件的不将就的 React Hook

在线示例

功能特色

  • 🦄 更符合普通输入组件直觉的输入逻辑,包括粘贴文本字符串
  • ✨ 支持 BackspaceDelete 按键,包括 Ctrl 快捷键
  • 🎈 支持左右方向键移动光标位置

编译与发布

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

changeset prerelease doc

证书

MIT License © 2023 Yuns

changelog

use-otp-input

0.0.4

Patch Changes

  • 🐛 fix: disable input whitespace

0.0.3

Patch Changes

  • 🐛 fix: detect no change of value

0.0.2

Patch Changes

  • chore: more docs

0.0.1

Patch Changes

  • feat: init use-otp-input