

Every state


default


focus


filled


stepped


at-max


error


disabled
Props
| Prop | Type | Default | What it does |
|---|---|---|---|
| id | string | "deposit-share" | Input id; the label, description and error hang off it. |
| name | string | "depositShare" | Form field name. |
| label | string | "Deposit" | Visible label. |
| description | string | – | Help text under the label. |
| min | number | 5 | Lowest percentage. |
| max | number | 50 | Highest percentage. |
| step | number | 0.5 | One step of the buttons and arrow keys; also how many decimals the field keeps. |
| defaultValue | number | 20 | Starting percentage. |
| locale | string | "en-IE" | Locale for the number format (12.5 or 12,5). |
| required | boolean | – | Marks the field required. |
| disabled | boolean | – | Disables the field and its buttons. |
| decreaseLabel | string | "Decrease" | Accessible name of the minus button. |
| increaseLabel | string | "Increase" | Accessible name of the plus button. |
| error | string | – | An error from outside, shown until the value changes. |
| onValueChange | (value: number | null) => void | – | The number after a step or when the field is left. |
| className | string | – | Extra classes on the outer Field. |
More amount inputs
All 6amount-input-04 is in UI ProGet UI Pro, €199


