UNPKG

rooks

Version:

Essential React custom hooks ⚓ to super charge your components!

11 lines 414 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/useBoundingclientRect */ declare function useBoundingclientrect(ref: MutableRefObject<HTMLElement | null>): DOMRect | null; export { useBoundingclientrect }; //# sourceMappingURL=useBoundingclientrect.d.ts.map