v14.2.0

Playroom

Github

NumberField

View Source

Number stepper input used to collect numeric information from users.

Copy
Edit

/

/

Copy
Edit

Props

maxnumber

Maximum number that can be entered.

minnumber

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.

padnumber

The amount of 0s to pad the value with.

String to display when value is empty.

stepnumber

The amount to step up/down from the value when using the arrow keys defaults to 1

valuenumber

The value of the input.

  • Props
PreviousInput.InputLabelNextRadio