@guruhotel/aura-hooks
Version:
🪝 Hooks library designed by the Guruhotel team for Aura UI
10 lines (9 loc) • 387 B
TypeScript
/// <reference types="react" />
declare type ObserverRect = Omit<DOMRectReadOnly, "toJSON">;
export declare function useResizeObserver<T extends HTMLElement = any>(): readonly [import("react").RefObject<T>, ObserverRect];
export declare function useElementSize<T extends HTMLElement = any>(): {
ref: import("react").RefObject<T>;
width: number;
height: number;
};
export {};