@kyounghwan/verification-input
v0.1.1
Published
Input component to put verification code Component
Maintainers
Readme
react-verification-input
A verification code input
DEMO
https://react-verification-input.netlify.app/
Install
npm install --save @kyounghwan/verification-inputyarn add @kyounghwan/verification-inputUsage
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"/>;
}API
Props
| 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 |
License
MIT © kyounghwan
