Skip to content

zeinab-nsr/react-otp-input

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

57 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

React OTP input component

A simple, customizable and controlled component built with React.

gif

API

Name
Type Required Description
inputCount number true Number of OTP inputs to be rendered
inputLength number true Length of each OTP input
getValue function true Returns OTP total value typed in inputs
label string false A simple label for OTP input
separator string
false This string will be placed between the inputs
isNumeric boolean false Enabling this, prevents typing non-numeric values

Available Scripts

In the project directory, you can run:

npm start

Runs the app in the development mode.

npm test

Launches the test runner in the interactive watch mode.

About

A customizable OTP input component for the web, built with React.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors