NumberField
View Source
Number stepper input used to collect numeric information from users.
Copy
Edit
/
/
Copy
Edit
Props
max
number
Maximum number that can be entered.
min
number
Minimum number that can be entered.
onChange
(value: string) => null
Called when the input’s onInput is called with a valid value or when the arrow keys are used to increment/decrement the value. Please note traditional onInput/onChange events are not supported since this component takes control of them.
pad
number
The amount of 0s to pad the value with.
placeholder
string
String to display when value is empty.
step
number
The amount to step up/down from the value when using the arrow keys
defaults to 1
value
number
The value of the input.