@josmangarsal/pragmatic-scheduler
Version:
React resource scheduler
11 lines (10 loc) • 377 B
TypeScript
/// <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 {};