react-otp-code
v1.1.10
Published
React one time password input
Downloads
6
Maintainers
Readme
react-otp-code
One time password component
Installation
To install the latest stable version:
npm install react-otp-code
Basic usage:
import { OtpCode } from 'react-otp-code';
import { useEffect, useState } from 'react';
export default function App() {
const [test, setTest] = useState('');
return (
<div className="App">
<OtpCode onChange={setTest} classNames={'yourClassName'} />
</div>
);
}