UNPKG

rooks

Version:

Collection of awesome react hooks

6 lines (5 loc) 354 B
import type { CallbackRef } from "../utils/utils"; declare function useInViewRef(): [CallbackRef, boolean]; declare function useInViewRef(options: IntersectionObserverInit): [CallbackRef, boolean]; declare function useInViewRef(callback: IntersectionObserverCallback, options?: IntersectionObserverInit): [CallbackRef, boolean]; export { useInViewRef };