AuthCode
In progress
A one-time password (OTP) is an automatically generated numeric or alphanumeric string of characters that authenticates a user for a single transaction or login session.

Default
Custom length
Only digits
Error state
Provided value is not valid!
Stretch
Props
Name | Type | Required | Default | Description |
---|---|---|---|---|
length | number | No | 6 | Number of inputs for inserting single values. |
onlyDigits | boolean | No | false | If true, inputs would allow only digit values. Default is alphanumeric. |
stretch | boolean | No | false | If true, inputs would get streched to fill the available width |
placeholder | string | No | - | Default placeholder for input elements. |
errorMessage | string | No | - | Puts element in error state and displays the message. |
onChange | function | No | - | Callback function that gets triggered on single value change. |
onSubmit | function | No | - | Callback function that gets triggered when all single values are entered. |