UNPKG

tanuki-ui

Version:

HTML-first React component library with semantic elements, multi-OS themes, and production-ready visual node editor

11 lines (10 loc) 512 B
import { default as React } from 'react'; export declare function useIntersectionObserver<T extends HTMLElement>(ref: React.RefObject<T | null>, { threshold, rootMargin, root }: IntersectionObserverInit): { readonly boundingClientRect: DOMRectReadOnly; readonly intersectionRatio: number; readonly intersectionRect: DOMRectReadOnly; readonly isIntersecting: boolean; readonly rootBounds: DOMRectReadOnly | null; readonly target: Element | null; readonly time: DOMHighResTimeStamp; };