react-typescript-otp-input
react-typescript-otp-input copied to clipboard
An OTP (one-time password) or OTC (one-time code) input component built in React and TypeScript.
React TypeScript OTP Input
An OTP (one-time password) or OTC (one-time code) input component bootstrapped with Create React App + TypeScript.
Quick Start
- Install Yarn.
- Clone the app:
git clone [email protected]:dominicarrojado/react-typescript-otp-input.git
- Install dependencies:
cd react-typescript-otp-input
yarn install
- Run the development server:
yarn start
- Open http://localhost:3000 to view it in the browser.
Running Tests (Watch)
yarn test
Build For Production
- Build static files:
yarn build
- The
builddirectory can be served by any static hosting service or CDN.
Learn
Learn how to build this OTP input here.