use-element-fit

useElementFit is a React hook that allows you to measure and element's based on certain restraints, similar to object-fit in CSS.

Browse on unpkg