UNPKG

rooks

Version:

Essential React custom hooks ⚓ to super charge your components!

11 lines 423 B
import type { MutableRefObject } from "react"; /** * useBoundingclientRect hook * * @param ref The React ref whose ClientRect is needed * @returns DOMRect | null * @see https://react-hooks.org/docs/useBoundingclientRect */ declare function useBoundingclientrect(ref: MutableRefObject<HTMLElement | null>): DOMRect | null; export { useBoundingclientrect }; //# sourceMappingURL=useBoundingclientrect.d.ts.map