
Security News
Open Source CAI Framework Handles Pen Testing Tasks up to 3,600× Faster Than Humans
CAI is a new open source AI framework that automates penetration testing tasks like scanning and exploitation up to 3,600× faster than humans.
react-verification-input
Advanced tools
react-verification-input
is a customizable, masked input, which can be used to enter all sorts of code e.g. security codes when two-factor authenticating.
Install it by running
npm install react-verification-input --save
or
yarn add react-verification-input
in your terminal.
Import the React component as follows:
import VerificationInput from 'react-verification-input'
Inside the render
method write:
<VerificationInput length={6} />
That´s it! You now have a basic verification input with default configuration rendered on your page. 🎉😃
The length
-prop is the only one required. For a complete API overview read the next chapter.
Option | Type | Default | Description |
---|---|---|---|
length | Number | - | Define, how many characters the input should allow. |
Option | Type | Default | Description |
---|---|---|---|
validChars | String | 'A-Za-z0-9' | Define, which characters should be allowed. The string is inserted into a regexp character set ( /[]/ ) for input validating. |
placeholder | String | '·' (U+00B7) | Define, which character should be displayed as placeholder in empty fields. Note: Currently the blank character can´t be used as placeholder, this will be possible in a later version. |
container | Object | null | Define the props of the container div . All props except for className are passed directly to the div element. Use { className: 'your-class' } to style the input. This options are available on every element. For more details on how to apply your custom styling see here. |
inputField | Object | null | Define the props of the input element. See container for more details. |
characters | Object | null | Define the props of the characters div . See container for more details. |
character | Object | null | Define the props of the character div s. See container for more details. |
TODO
This project is still work in progress.
Things, that need to be done:
' '
(blank) as placeholderFAQs
Customizable, masked input, which can be used for all sorts of codes.
The npm package react-verification-input receives a total of 30,804 weekly downloads. As such, react-verification-input popularity was classified as popular.
We found that react-verification-input demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 0 open source maintainers 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
CAI is a new open source AI framework that automates penetration testing tasks like scanning and exploitation up to 3,600× faster than humans.
Security News
Deno 2.4 brings back bundling, improves dependency updates and telemetry, and makes the runtime more practical for real-world JavaScript projects.
Security News
CVEForecast.org uses machine learning to project a record-breaking surge in vulnerability disclosures in 2025.