UNPKG

@mantine/hooks

Version:

A collection of 50+ hooks for state and UI management

9 lines (8 loc) 355 B
export interface UseInViewportReturnValue<T extends HTMLElement = any> { inViewport: boolean; ref: React.RefCallback<T | null>; } export declare function useInViewport<T extends HTMLElement = any>(): UseInViewportReturnValue<T>; export declare namespace useInViewport { type ReturnValue<T extends HTMLElement> = UseInViewportReturnValue<T>; }