UNPKG

@josmangarsal/pragmatic-scheduler

Version:
11 lines (10 loc) 377 B
/// <reference types="react" /> type UseVisibilityObserverProps = { root: HTMLElement | null; targetRef: React.RefObject<HTMLElement> | React.MutableRefObject<HTMLElement | undefined>; threshold?: number; }; export declare function useVisibilityObserver({ root, targetRef, threshold }: UseVisibilityObserverProps): { isVisible: boolean; }; export {};