@uiw/react-overlay-trigger
Version:
OverlayTrigger component
13 lines (12 loc) • 343 B
TypeScript
export type Sizes = {
width: number;
height: number;
};
/**
* Get the outer sizes of the given element (offset size + margins)
* @method
* @memberof Popper.Utils
* @argument {Element} element
* @returns {Object} object containing width and height properties
*/
export default function getOuterSizes(element: HTMLElement): Sizes;