UNPKG

@mantine/hooks

Version:

A collection of 50+ hooks for state and UI management

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