Skip to Content
DocsForm InputsNumber Field

Number Field

A number field allows a user to enter a numeric value with stepper buttons for incrementing and decrementing.

Min, max, and step

Format options

Values are formatted with Intl.NumberFormat using the formatOptions prop.

Disabled

Component props

NameTypeDescription
labelstringLabel text displayed above the field
placeholderstringPlaceholder text
valuenumberControlled value
defaultValuenumberDefault value
minValuenumberMinimum value
maxValuenumberMaximum value
stepnumberAmount to increment or decrement
formatOptionsIntl.NumberFormatOptionsNumber format options
isDisabledbooleanDisables the field
isReadOnlybooleanPrevents changing the value
isRequiredbooleanMarks the field as required
onChange(value: number | null) => voidCalled when the value changes