collected.tools.

Input OTP

A one-time code input for React

What it is

Input OTP is a React component for one-time codes, the kind used in two-factor sign-in or SMS verification. Beneath the visible boxes sits a single native input, so pasting, SMS autofill and password managers simply work. The component ships unstyled, weighs about 4 kB and has no dependencies.

Install
npm install input-otp
Why it made the cut
  • One native input behind freely styled slots
  • Paste, SMS autofill and password managers work
  • No dependencies, about 4 kB gzipped

Related entries