
Company News
Andrew Becherer Joins Socket as Chief Information Security Officer
Socket’s first CISO brings deep experience securing high-growth SaaS companies as open source supply chain threats accelerate.
react-input-verification-code
Advanced tools
A verification code input, autocompletion friendly
npm install --save react-input-verification-code
yarn add react-input-verification-code
import * as React from 'react';
import ReactInputVerificationCode from 'react-input-verification-code';
export default function App() {
return <ReactInputVerificationCode />;
}
| Key | Type | Default | Required | Description |
|---|---|---|---|---|
| autoFocus | boolean | false | false | Focus on render |
| length | number | 4 | false | How many items will be rendered |
| onChange | function | () => {} | false | Function called when the value changes |
| onCompleted | function | () => {} | false | Function called when the code is completed |
| placeholder | string | · | false | String rendered in each item when no value has been typed |
| value | string | () => {} | false | Control internal input value |
The following CSS properties are set globally so you can easily override them to fit your needs
| Key | Default | Description |
|---|---|---|
--ReactInputVerificationCode-itemWidth | 4.5rem | Width of an item |
--ReactInputVerificationCode-itemHeight | 5rem | Height of an item |
--ReactInputVerificationCode-itemSpacing | 1rem | Space between two items |
MIT © ugogo
FAQs
A verification code input, autocompletion friendly
The npm package react-input-verification-code receives a total of 4,934 weekly downloads. As such, react-input-verification-code popularity was classified as popular.
We found that react-input-verification-code demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Company News
Socket’s first CISO brings deep experience securing high-growth SaaS companies as open source supply chain threats accelerate.

Company News
Replit is integrating Socket Firewall into its AI-powered development experience to help protect builders from malicious open source packages.

Security News
npm confirmed a tooling bug incorrectly marked several one-character packages as security holders and said it was working on a rollback.