@matthew.ngo/react-form-kit
Version:
Form Kit for React. It consists of a set of components that can be used to create complex forms in a simple and declarative way.
9 lines (8 loc) • 345 B
TypeScript
export declare const useScrollPosition: (getScrollPosition?: () => {
x: number;
y: number;
}, setScrollPosition?: (position: {
x: number;
y: number;
}) => void) => import("react").RefObject<HTMLDivElement | null>;
export declare const useClickOutside: (callback?: () => void) => import("react").RefObject<HTMLDivElement | null>;