
Security News
TeamPCP and BreachForums Launch $1,000 Contest for Supply Chain Attacks
TeamPCP and BreachForums are promoting a Shai-Hulud supply chain attack contest with a $1,000 prize for the biggest package compromise.
react-input-verification-code
Advanced tools
A verification code input, mobile autocompletion friendly
{
"react": ">=16.0.0",
"react-dom": ">=16.0.0"
}
yarn add react-input-verification-code
import React from 'react';
import ReactInputVerificationCode, {
ReactInputVerificationCodeProps,
} from 'react-input-verification-code';
const customProps: ReactInputVerificationCodeProps = {
autoFocus: true,
};
export default function App() {
return <ReactInputVerificationCode {...customProps} />;
}
| Key | Type | Default | Required | Description |
|---|---|---|---|---|
| autoFocus | boolean | false | false | Should focus on first render |
| inputProps | React.InputHTMLAttributes<HTMLInputElement>; | undefined | false | Allow passing custom props into the inputs |
| length | number | 4 | false | How many inputs will be rendered |
| onChange | function | () => null | false | Function called when the value changes |
| onCompleted | function | () => null | false | Function called when the value is completed |
| placeholder | string | · | false | Inputs placeholder |
| value | string | "" | false | Default value |
| type | 'alphanumeric, number' | number | false | Should accepts alphanumeric values or only numbers |
Simply override the styles using the following classnames
.ReactInputVerificationCode-container {
/* */
}
.ReactInputVerificationCode-item {
/* */
}
MIT © ugogo
FAQs
A verification code input, autocompletion friendly
The npm package react-input-verification-code receives a total of 4,709 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
TeamPCP and BreachForums are promoting a Shai-Hulud supply chain attack contest with a $1,000 prize for the biggest package compromise.

Security News
Packagist urges PHP projects to update Composer after a GitHub token format change exposed some GitHub Actions tokens in CI logs.

Research
GemStuffer abuses RubyGems as an exfiltration channel, packaging scraped UK council portal data into junk gems published from new accounts.