UNPKG

rooks

Version:

Essential React custom hooks ⚓ to super charge your components!

14 lines 630 B
import type { CallbackRef } from "../utils/utils"; /** * * useIntersectionObserverRef hook * * Returns a mutation observer for a React Ref and fires a callback * * @param {IntersectionObserverCallback} callback Function that needs to be fired on mutation * @param {IntersectionObserverInit} options * @see https://react-hooks.org/docs/useIntersectionObserverRef */ declare function useIntersectionObserverRef(callback: IntersectionObserverCallback | undefined, options?: IntersectionObserverInit): [CallbackRef]; export { useIntersectionObserverRef }; //# sourceMappingURL=useIntersectionObserverRef.d.ts.map