Hex Core JS
    Preparing search index...

    Function useBoundingClientRect

    • Provides an element ref and the bounding client rect for that element.

      Type Parameters

      • T extends HTMLElement

      Parameters

      • OptionaldependencyArray: DependencyList

        The dependency array used for the useEffect hook to update the bounding client rect.

      Returns { ref: MutableRefObject<T | null> } & BoundingClientRect

      T Typeparam for the ref object.