@kyounghwan/verification-input
v0.1.1
Published
Input component to put verification code Component
Downloads
14
Maintainers
Readme
react-verification-input
A verification code input
DEMO
https://react-verification-input.netlify.app/
Install
npm install --save @kyounghwan/verification-input
yarn add @kyounghwan/verification-input
Usage
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