Skip to content

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

Notifications You must be signed in to change notification settings

dominicarrojado/react-typescript-otp-input

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

31 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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 [email protected]: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.