length How many digits, and so how many boxes. | number | 4 |
onComplete Called with the full code once the last box is filled. | (code: string) => void | — |
error Put the group in its error state. | boolean | false |
errorMessage Message shown under the boxes when error is set. | React.ReactNode | — |
disabled Block input across every box. | boolean | false |
autoFocus Focus the first box on mount. Leave it off if the code is not the first thing on the page. | boolean | false |