Skip to content
+

Number Input

The Number Input component provides users with a field for integer values, and buttons to increment or decrement the value.

useNumberInput API

Import

import { unstable_useNumberInput as useNumberInput } from '@mui/base/unstable_useNumberInput';
// or
import { unstable_useNumberInput as useNumberInput } from '@mui/base';
Learn about the difference by reading this guide on minimizing bundle size.

Parameters

defaultValue

disabled

error

inputId

inputRef

max

min

onBlur

onChange

onClick

onFocus

onInputChange

readOnly

required

shiftMultiplier

step

value

Return value

disabled

error

focused

formControlContext

getDecrementButtonProps

getIncrementButtonProps

getInputProps

getRootProps

inputValue

isDecrementDisabled

isIncrementDisabled

required

value