Last updated 2 years ago
Was this helpful?
Render separated boxes to enter a code.
requestCode
(value: string) => void;
This method will be triggered when the code text reached the maxLengthCode
maxLengthCode
number
This number indicates how many input code boxes should be rendered.
Default: 6
placeholder
string (optional)
Text placeholder for each input code box.
Default: '-'
<InputCode maxLengthCode=6 requestCode={requestCode} />