UNPKG

rooks

Version:

Collection of awesome react hooks

11 lines (10 loc) 369 B
import type { MutableRefObject } from "react"; /** * useBoundingclientRect hook * * @param ref The React ref whose ClientRect is needed * @returns DOMRect | null * @see https://rooks.vercel.app/docs/hooks/useBoundingclientRect */ declare function useBoundingclientrect(ref: MutableRefObject<HTMLElement | null>): DOMRect | null; export { useBoundingclientrect };