value | string | - | |
|
defaultValue | string | - | The typed digits on first render, uncontrolled. |
| The typed digits on first render, uncontrolled. |
onValueChange | (value: string) => void | - | Called with the digits whenever they change. |
| Called with the digits whenever they change. |
length | number | 4 | How many digits a PIN takes. |
| How many digits a PIN takes. |
onComplete | (value: string) => void | - | Called once a PIN reaches length. |
Called once a PIN reaches length. |
currency | string | USD | The currency an amount is in, as an ISO code. |
| The currency an amount is in, as an ISO code. |
locale | string | en-US | Formats the amount's grouping, decimal mark and currency sign. |
| Formats the amount's grouping, decimal mark and currency sign. |
label | string | - | The line over the display, and the keypad's accessible name. |
| The line over the display, and the keypad's accessible name. |
variant | pin | amount | amount | A PIN of a fixed length, shown as dots, or an amount with its currency. |
| A PIN of a fixed length, shown as dots, or an amount with its currency. |
shape | none | rounded | pill | - | |
|
className | string | - | |
|
focus | boolean | string | true | |
|