1.0.14 • Published 2 years ago

otp-react-input v1.0.14

Weekly downloads
-
License
ISC
Repository
github
Last release
2 years ago

otp-react-input

one-time password input component for the web built with React.

see here

To install the latest stable version:

npm install --save otp-react-input

Basic usage:

import React from 'react';
import React0tp from 'otp-react-input';

export default const App =()=> {
 const handleSend = (v) => {
        console.log("Entered OTP is ", v)
    }
     return (
          <React0tp
             title="otp"
             borderColor="#ccc"
             borderWidth="2px"
             borderRadius="5px"
             width="50px"
             height="50px"
             hasError={true}
             errorText="please enter all fields"
             fieldsNumber={4}
             handleSend={handleSend}
        />
     );
}

API

1.0.14

2 years ago

1.0.13

2 years ago

1.0.12

2 years ago

1.0.11

2 years ago

1.0.10

2 years ago

1.0.9

2 years ago

1.0.8

2 years ago

1.0.7

2 years ago

1.0.6

2 years ago

1.0.5

2 years ago

1.0.4

2 years ago

1.0.3

2 years ago

1.0.2

2 years ago

1.0.1

2 years ago

1.0.0

2 years ago