@tolokoban/ui
Version:
React components with theme
9 lines • 474 B
TypeScript
/**
* Force a rerender as soon as an observed element changed its size.
* The rerender can also be debounced.
* @param refElem Reference of the element whose size we want to observe.
* @param debounceDelay If defined, debounce the dimension update.
* @returns `[width, height]`
*/
export declare function useResizeObserver(element: HTMLElement | SVGElement | null, debounceDelay?: number): [width: number, height: number];
//# sourceMappingURL=resize-observer.d.ts.map