_checkValidity
_checkValidity: (arg1: any) => boolean = ...
_getInput: () => HTMLInputElement = ...
_handleBlur
_handleBlur: (e?: KeyboardEvent<Element> | FocusEvent<Element, Element>) => void = ...
_handleChange
_handleChange: (arg1: ChangeEvent<HTMLInputElement>) => void = ...
_handleFocus
_handleFocus: () => void = ...
_onKeyDown
_onKeyDown: (arg1: KeyboardEvent) => void = ...
_setValue
_setValue: (arg1: number, arg2: MathFormat) => void = ... blur
blur: () => void = ...
focus
focus: () => void = ...
getSelectionEnd
getSelectionEnd: () => number | null = ...
getSelectionStart
getSelectionStart: () => number | null = ...
getStringValue
getStringValue: () => string = ...
getValue
getValue: () => any = ...
inputRef: RefObject<HTMLInputElement> = ...
parseInputValue: (arg1: any) => any = ...
setSelectionRange
setSelectionRange: (arg1: number, arg2: number) => void = ...
StaticdefaultProps
defaultProps: any = ...
StaticpropTypes
propTypes: {
allowPiTruncation: any;
checkValidity: any;
format: any;
label: any;
onChange: any;
onFormatChange: any;
placeholder: any;
size: any;
value: any;
} = ...
An input box that accepts only numeric strings
Calls
onChange(value, format)for valid numbers.Reverts to the current value
onBluror on [ENTER], but maintains the format (i.e. 3/2, 1 1/2, 150%)Accepts empty input and sends it to
onChangeasnullif no numeric placeholder is set.If given a
checkValidityfunction, will turn the background/outline red when invalid.If
useArrowKeysis set totrue, up/down arrows will increment/decrement integers.Optionally takes a
size("mini","small","normal"`)