OtpForm component for handling OTP verification.
Methods
# inner handleInput1(e)
Handle input for the first OTP input field.
Parameters:
| Name | Type | Description |
|---|---|---|
e |
Event
|
The input change event. |
# inner handleInput2(e)
Handle input for the second OTP input field.
Parameters:
| Name | Type | Description |
|---|---|---|
e |
Event
|
The input change event. |
# inner handleInput3(e)
Handle input for the third OTP input field.
Parameters:
| Name | Type | Description |
|---|---|---|
e |
Event
|
The input change event. |
# inner handleKeyDown(event, currentIndex)
Handle keyboard navigation between OTP input fields.
Parameters:
| Name | Type | Description |
|---|---|---|
event |
Event
|
The keyboard event. |
currentIndex |
number
|
The index of the current input field. |
# inner onSubmit(event)
Callback function when the OTP form is submitted.
Parameters:
| Name | Type | Description |
|---|---|---|
event |
Event
|
The form submit event. |