Edit page
Home
Getting Started
Components
Forms
AddressSmartInputAsyncCreatableSelectAsyncSelectCheckboxCreatableSelectCurrencyInputDropzoneDropzoneImagesFormErrorFormLabelImageCropInputGroupNumberInputPropsExamplesPasswordInputPhoneInputRadioSelectSliderInputTextInputTextMaskInputTextareaToggle
Typography
Utilities
Visualization Components

NumberInput

An input for putting in numbers, with buttons for decrementing and incrementing the value.

Props

children
Func
className
String
[Empty string]
disabled
Bool
false
enableTyping
Bool
true
error
Bool
false
loopRange
Bool
false
max
Number
Infinity
min
Number
-Infinity
name
String
required
onChange
Func
required
showArrows
Bool
true
size
'small' │ 'medium' │ 'large'
'large'
step
Number
1
value
number │ string
[Empty string]
withLeadingZero
Bool
false

Examples

Default Usage

Uncontrolled Value

Size Modifier

Min And Max Values

Custom Step Value

No Arrow Buttons

Disabled

Disabled Typing

Looped Range

Headless NumberInput