UNPKG

norma-library

Version:

Olos/Norma-DS. Design System based on Material UI, developed with TypeScript and Styled Components to create reusable and consistent components in web applications.

8 lines (7 loc) 361 B
import { RefObject } from 'react'; /** * Hook that detects when an element is partially visible in the viewport * @param elementRef - Reference to the DOM element to observe * @returns boolean indicating if the element is partially visible in the viewport */ export declare const usePartiallyVisible: (elementRef: RefObject<HTMLElement | null>) => boolean;