Forms

NumberInput

Edit decimals or integers with locale-aware grouping and configurable numeric bounds.

Basic usage

Pass canonical values as strings. Here, maximumFractionDigits={0} accepts integers. A number below min remains editable and fails validation.

Enter a whole number greater than or equal to zero.

API

Key props and defaults.

PropValues and behaviorDefault
localestringen-US
useGroupingbooleantrue
min / maxdecimal string—
maximumFractionDigitsnumbermax(6, minimumFractionDigits)
allowNegativebooleantrue
submitValueformatted | rawformatted