/react-typescript-otp-input

An OTP (one-time password) or OTC (one-time code) input component built in React and TypeScript.

Primary LanguageTypeScript

React TypeScript OTP Input

CI/CD codecov

An OTP (one-time password) or OTC (one-time code) input component bootstrapped with Create React App + TypeScript.

Quick Start

  1. Install Yarn.
  2. Clone the app:
git clone git@github.com:dominicarrojado/react-typescript-otp-input.git
  1. Install dependencies:
cd react-typescript-otp-input
yarn install
  1. Run the development server:
yarn start
  1. Open http://localhost:3000 to view it in the browser.

Running Tests (Watch)

yarn test

Build For Production

  1. Build static files:
yarn build
  1. The build directory can be served by any static hosting service or CDN.

Learn

Learn how to build this OTP input here.