UNPKG

rooks

Version:

Collection of awesome react hooks

15 lines (14 loc) 473 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://rooks.vercel.app/docs/hooks/useBoundingclientRectRef */ declare function useBoundingclientrectRef(): [ CallbackRef | null, DOMRect | null, () => void ]; export { useBoundingclientrectRef };