
Security News
New CVE Forecasting Tool Predicts 47,000 Disclosures in 2025
CVEForecast.org uses machine learning to project a record-breaking surge in vulnerability disclosures in 2025.
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 |
type | text or password | text | false | Display the item value or a password mask |
passwordMask | string | • | false | Password mask |
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 3,451 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.
Security News
CVEForecast.org uses machine learning to project a record-breaking surge in vulnerability disclosures in 2025.
Security News
Browserslist-rs now uses static data to reduce binary size by over 1MB, improving memory use and performance for Rust-based frontend tools.
Research
Security News
Eight new malicious Firefox extensions impersonate games, steal OAuth tokens, hijack sessions, and exploit browser permissions to spy on users.