UNPKG

@mantine/hooks

Version:

A collection of 50+ hooks for state and UI management

6 lines (5 loc) 271 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>;