@kyounghwan/verification-input

0.1.1 • Public • Published

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

Package Sidebar

Install

npm i @kyounghwan/verification-input

Weekly Downloads

1

Version

0.1.1

License

MIT

Unpacked Size

555 kB

Total Files

15

Last publish

Collaborators

  • kyounghwan