Skip to main content

Function: NumberField()

function NumberField(__namedParameters): Element;

Defined in: components/NumberField.tsx:20

number.

The visible input stays type="text" rather than type="number": on low-end Android the numeric spinner steals scroll gestures, type="number" silently discards non-Latin digits an Arabic keyboard produces, and browsers report an empty string for any value they consider invalid, which loses the enumerator's keystrokes. Digits are normalised to ASCII on the way in (docs/13 §5) and inputMode still brings up the numeric keypad.

Parameters

ParameterType
__namedParametersElementComponentProps

Returns

Element