A simple, customizable and controlled component built with React.
| 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 |
In the project directory, you can run:
Runs the app in the development mode.
Launches the test runner in the interactive watch mode.
