@mantine/hooks
Version:
A collection of 50+ hooks for state and UI management
3 lines (2 loc) • 338 B
TypeScript
export declare function getInputOnChange<T>(setValue: (value: null | undefined | T | ((current: T) => T)) => void): (val: T | import("react").ChangeEvent<any> | ((current: T) => T) | null | undefined) => void;
export declare function useInputState<T>(initialState: T): [T, (value: null | undefined | T | React.ChangeEvent<any>) => void];