input

An autocomplete verification code input with react

Jun 25, 2020
An autocomplete verification code input with react

react-input-verification-code

A verification code input, autocompletion friendly.

Examples

Install

npm install --save react-input-verification-code
yarn add react-input-verification-code

Usage

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 />; }

API

KeyTypeDefaultRequiredDescription
lengthnumber4falseHow many items will be rendered
onChangefunctiontrueFunction called when the value changes
placeholderstring·falseString rendered in each item when no value has been typed

GitHub

Recommended