UNPKG

react-scrollsense

Version:

A lightweight scroll sensor to solve your react scroll into viewport issues.

20 lines (19 loc) 637 B
import { ReactChildren, Tracker } from '../types'; export declare type IOScrollContext = { addToSingleio: (el: any, fn: any, options: any) => Tracker; addToMultipleio: (el: any, fn: any, config: any) => Tracker; updateMultipleio: (el: any, fn: any, options: any) => null; removeTracking: (el: any, isMultiple: any) => void; sensorType: 'io'; }; export declare type ScrollSenseProps = { children?: ReactChildren; config?: { threshold?: number; root?: HTMLElement; rootMargin?: string; }; }; export declare type ScrollSenseState = { refreshToggle: boolean; };