@kubit-ui-web/react-components
Version:
Kubit React Components is a customizable, accessible library of React web components, designed to enhance your application's user experience
12 lines (11 loc) • 429 B
TypeScript
type UseScrollDetectionReturnType = {
handleScrollDetection: (element: HTMLElement | null | undefined) => void;
hasScroll: boolean;
};
/**
* Custom hook that determines if an element has scroll
*
* @returns An object containing the `hasScroll` boolean and the `handleScrollDetection` callback function to initialize the hook.
*/
export declare const useScrollDetection: () => UseScrollDetectionReturnType;
export {};