A verification code input, autocompletion friendly
- Basic
- Custom Styles
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';
import 'react-input-verification-code/dist/index.css';
export default function App() {
return <ReactInputVerificationCode />;
}
Key | Type | Default | Description |
---|---|---|---|
length | number |
4 |
How many items will be rendered |
placeholder | string |
· |
String rendered in each item when no value has been typed |
MIT © ugogo