UNPKG

@fe6/water-pro

Version:

An enterprise-class UI design language and Vue-based implementation

15 lines (14 loc) 477 B
/** @format */ import { Ref } from 'vue'; interface IntersectionObserverProps { target: Ref<Element | null | undefined>; root?: Ref<Element | null | undefined>; onIntersect: IntersectionObserverCallback; rootMargin?: string; threshold?: number; } export declare function useIntersectionObserver({ target, root, onIntersect, rootMargin, threshold, }: IntersectionObserverProps): { observer: Ref<IntersectionObserver>; stop: () => void; }; export {};