react-intersections
Version:
## Installation
9 lines (8 loc) • 324 B
TypeScript
/// <reference types="react" />
import { OptionsType } from './types';
export declare const useInViewTrigger: (options?: OptionsType) => {
visibilityTime?: number | undefined;
inView: boolean;
entry?: IntersectionObserverEntry | null | undefined;
targetRef: import("react").MutableRefObject<any>;
};