mirror of
https://github.com/Tria-plc/emaui.git
synced 2026-08-27 13:10:58 +00:00
9 lines
423 B
TypeScript
9 lines
423 B
TypeScript
type ObserverRect = Omit<DOMRectReadOnly, 'toJSON'>;
|
|
export declare function useResizeObserver<T extends HTMLElement = any>(options?: ResizeObserverOptions): readonly [import("react").RefObject<T | null>, ObserverRect];
|
|
export declare function useElementSize<T extends HTMLElement = any>(options?: ResizeObserverOptions): {
|
|
ref: import("react").RefObject<T | null>;
|
|
width: number;
|
|
height: number;
|
|
};
|
|
export {};
|