@appbuckets/react-ui
Version:
Just Another React UI Framework
18 lines (17 loc) • 570 B
TypeScript
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;