@lesnoypudge/utils-react
Version:
lesnoypudge's utils-react
6 lines (5 loc) • 342 B
TypeScript
import { useRefManager } from '../useRefManager';
/**
* Tracks the intersection of an element with the viewport or another element.
*/
export declare const useIntersectionObserver: (elementRef: useRefManager.NullableRefManager<HTMLElement>, callback: (entry: IntersectionObserverEntry) => void, options?: IntersectionObserverInit) => void;