UNPKG

rooks

Version:

Essential React custom hooks ⚓ to super charge your components!

15 lines 534 B
import type { CallbackRef } from "../utils/utils"; /** * useBoundingclientrectRef hook * Tracks the boundingclientrect of a React Ref and fires a callback when the element's size changes. * * @returns [CallbackRef | null, DOMRect | null, () => void] * @see https://react-hooks.org/docs/useBoundingclientRectRef */ declare function useBoundingclientrectRef(): [ CallbackRef | null, DOMRect | null, () => void ]; export { useBoundingclientrectRef }; //# sourceMappingURL=useBoundingclientrectRef.d.ts.map