Custom hook to get the dimensions of a DOM element.
The type of the DOM element.
The options for the hook.
Optional
The initial height of the element (default: 0).
The initial width of the element (default: 0).
Custom hook to get the dimensions of a DOM element.