A verification code input
https://react-verification-input.netlify.app/
npm install --save @kyounghwan/verification-input
yarn add @kyounghwan/verification-input
import React from "react";
import { VerficationInput } from "@kyounghwan/verification-input";
export default function App() {
return <VerficationInput length={6} onChange{value => console.log(value)} placeholder="0"/>;
}
Key | Type | Default | Required | Description |
---|---|---|---|---|
length | number |
4 |
false | How many items are render |
onChange | function |
false | Function to receive events | |
placeholder | string |
· |
false | placeholder |
MIT © kyounghwan