React Enhanced Numeric Input
Edit page
ChangelogNumericInputBasic UsageDefining decimal precisionDecimal precision and maxLengthFormatting input as moneyFormatting input as percentFormatting input as percent with large decimal precisionCalling functions on events (onBlur, onChange)Decimal precision and maxLength using value onBlurThousand separator as dot (.)Thousand separator as comma (,)Test with thousand separator and maxLengthWorking with large numbersWorking with large numbers with decimalsReadme

NumericInput

className
string
decimalPrecision
number
decimalSeparator
string
thousandSeparator
string
disabled
boolean
autoFocus
boolean
maxLength
number
id
string
name
string
placeholder
string
onChange
(e: ChangeEvent<Element>) => void
onBlur
(e: ChangeEvent<Element>, value: string | number) => void
onClick
() => void
onFocus
(e: FocusEvent<Element>) => void
onKeyPress
() => void
style
CSSProperties
value
string | number
percent
boolean
money
boolean
moneyMask
string
stringValueOnBlur
boolean

Basic Usage

Defining decimal precision

Decimal precision and maxLength

Formatting input as money

Formatting input as percent

Formatting input as percent with large decimal precision

Calling functions on events (onBlur, onChange)

Decimal precision and maxLength using value onBlur

Thousand separator as dot (.)

Thousand separator as comma (,)

Test with thousand separator and maxLength

Working with large numbers

Working with large numbers with decimals