UNPKG

envoc-form

Version:

Envoc form components

10 lines (9 loc) 522 B
import React from 'react'; import { InputGroupProps } from './InputGroup'; export interface NumberInputGroupProps extends Omit<InputGroupProps<number | undefined | null>, 'onChange' | 'type' | 'value'> { /** Custom parsing function when the value changes. */ parseFunc?: typeof parseInt | typeof parseFloat; } /** Standard number input group. By default allows for float values. */ declare const NumberInputGroupWithRef: React.ComponentType<NumberInputGroupProps>; export default NumberInputGroupWithRef;