NumberField
View Source
Number stepper input used to collect numeric information from users.
Copy
Edit
/
/
Copy
Edit
Props
max
numberMaximum number that can be entered.
min
numberMinimum number that can be entered.
onChange
(value: string) => nullCalled 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
numberThe amount of 0s to pad the value with.
placeholder
stringString to display when value is empty.
step
numberThe amount to step up/down from the value when using the arrow keys
defaults to 1
value
numberThe value of the input.