label | string | - | Text above the slots, wired to the first one through Base UI's Field.Label. |
Text above the slots, wired to the first one through Base UI's Field.Label. |
description | string | - | A line under the slots, for where the code comes from. |
| A line under the slots, for where the code comes from. |
error | string | - | The code was wrong: the slots shake, the digits clear, and this message takes the place of description. |
The code was wrong: the slots shake, the digits clear, and this message takes the place of description. |
success | string | - | The code was right: the slots turn green, then fold into a key with this text. |
| The code was right: the slots turn green, then fold into a key with this text. |
length | number | 6 | How many characters the code has, one slot each. |
| How many characters the code has, one slot each. |
groupSize | number | 3 | |
|
validationType | numeric | alpha | alphanumeric | numeric | |
|
mask | boolean | false | Draws each character as a dot, as a password field does. |
| Draws each character as a dot, as a password field does. |
size | sm | md | lg | md | Width, height and type size of every slot. |
| Width, height and type size of every slot. |
shape | none | rounded | pill | rounded | |
|
disabled | boolean | false | Blocks input and dims the whole field, label included. |
| Blocks input and dims the whole field, label included. |
required | boolean | false | Appends a red asterisk to the label and makes the code required when a form submits. |
| Appends a red asterisk to the label and makes the code required when a form submits. |
className | string | - | |
|
focus | boolean | string | true | |
|