Add support for multiple ResizeObserverBoxOptions.
Closed this issue · 0 comments
Gautam-Arora24 commented
Currently, the hook supports only the height
and width
of the element. But, we can add more pieces of data by using different properties of ResizeObserverEntry
interface such as "borderBoxSize"
, "contentBoxSize"
and etc.
For documentation refer here ->
https://developer.mozilla.org/en-US/docs/Web/API/ResizeObserverEntry