UNPKG

rsuite

Version:

A suite of react components

11 lines (10 loc) 479 B
/// <reference types="react" /> /** * Attach the event handler directly to the specified DOM element, * and it will be triggered when the size of the DOM element is changed. * * @param eventTarget The target to listen for events on * @param listener An event handler */ export declare function useElementResize(eventTarget: Element | null | (() => Element | null) | React.RefObject<Element | null>, listener: ResizeObserverCallback): void; export default useElementResize;