UNPKG

@mantine/hooks

Version:

A collection of 50+ hooks for state and UI management

9 lines (8 loc) 373 B
export interface UseIntersectionReturnValue<T> { ref: React.RefCallback<T | null>; entry: IntersectionObserverEntry | null; } export declare function useIntersection<T extends HTMLElement = any>(options?: IntersectionObserverInit): UseIntersectionReturnValue<T>; export declare namespace useIntersection { type ReturnValue<T> = UseIntersectionReturnValue<T>; }