Description
input-otp is a one-time password input component for React. It renders a row of code boxes backed by one real input element, which the README says keeps the native behavior of the browser, including autofill, paste and password managers. It is unstyled, so you bring your own design, and it has a small API that the README describes as unusually capable. Features include pattern validation, copy and paste support for codes, and a tiny dependency-free build. The project is open source and is installed from npm with npm install input-otp. The documentation site explains how to use it, and the README lists the sponsors who support the project. It is aimed at React developers who build sign-in or verification screens and want an accessible code entry box without writing one from scratch.…
Highlights
- One-time password input for React
- Accessible and unstyled
- Paste and password manager friendly
- Pattern validation
- Tiny and dependency-free
Ratings & Reviews
No ratings yet
Be the first to rate rodz/input-otp.
People also visit
React Native Otp Entry
Simple and fully modifiable OTP Input Component for React Native

react-code-input
React component for entering and validating numbers, text or password

react-native-confirmation-code-field
A react-native component to input confirmation code for both Android and IOS
Otpauth
Implements two-step verification of HOTP/TOTP. Also known as one time password
rodz/input-otp FAQ
What is input-otp?
A React component for entering one-time passcodes, with an unstyled, accessible input.
How do I install it?
Run npm install input-otp, then use the component in your React app.
Does it work with password managers?
The README says it is friendly to password managers and supports paste.
Does it come with styles?
No. The README says it is unstyled, so you bring your own styles.
Is it free?
Yes. It is open source on GitHub, and the README lists sponsors for the project.
What are the best rodz/input-otp alternatives?
Popular alternatives to rodz/input-otp include Otpauth, Otplib and Ios Application. See all rodz/input-otp alternatives



