useIsOverflown

This hook checks whether an element is overflown. It can return both the x-overflow and the y-overflow values separately.

Values

x:

boolean value whether the x axis is overflown

y:

boolean value whether the y axis is overflown

Arguments

ref:

Refferences to the element you wan't to observe