1.0.1 • Published 4 years ago

@kurted/otp-input v1.0.1

Weekly downloads
-
License
MIT
Repository
github
Last release
4 years ago

@kurted/otp-input

OTP Input handler for react. (currenly uncontrolled component)

Installation

npm install @kurted/otp-input

Usage

import OtpInput from '@kurted/otp-input';

const OTP_Component = () => {
  return (
    <div>
      <form onSubmit={submitHandler}>
        <OtpInput />
        <button type="submit">VERIFY</button>
      </form>
    </div>
  );
};

Available Props

PropTypeDescriptionDefalut Value
countnumberlength of OTP6
idstringid for component'otp_input'
variant'box', 'line'input border stylebox
borderColorstringinput border color'black'
borderWidthnumberinput border width1px for box & 2px for line
outlinestringinput focus highlight'none'