useElementSize<T extends HTMLElement, Size extends ISize = ISize>( options?: Partial<IParams<Size>>,): { elementRef: any; size: Size } Type Parameters
- T extends HTMLElement
- Size extends ISize = ISize
Parameters
Optionaloptions: Partial<IParams<Size>>
Returns { elementRef: any; size: Size }
- An object containing a ref to the element and the current size.
Calculates the size of an HTML element and updates it when it changes.