easy-forms
Form components

Number

Numeric input with prefix/suffix, decimal scale, and thousand separators.

Stores number | null.

Preview
Live
$
%

Options

PropTypeDefaultDescription
minnumberMinimum allowed value (also a validator).
maxnumberMaximum allowed value (also a validator).
decimalScalenumberNumber of decimal places to display.
allowThousandSeparatorbooleanGroup digits with separators (1,000).
prefixstringStatic text before the value (e.g. "$").
suffixstringStatic text after the value (e.g. "%").
placeholderstringPlaceholder text.

Validators

required, min, max, and custom. The empty state is null, not 0.

On this page