UNPKG

@appbuckets/react-ui

Version:
18 lines (17 loc) 570 B
import * as React from 'react'; import type { NumericInputChangeHandler } from '../NumericInput'; export declare type UseNumericInputValueReturn = [ number | null, NumericInputChangeHandler, React.Dispatch<React.SetStateAction<number | null>> ]; /** * Use this hook to get automatically the numeric input value * and the handler function to attach to numeric input. * Additionally function to force change will be returned * * @param initialValue */ export declare function useNumericInputValue( initialValue?: number | null ): UseNumericInputValueReturn;