0.1.1 • Published 5 years ago
@kyounghwan/verification-input v0.1.1
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