use-element-fit
Version:
useElementFit is a React hook that allows you to measure and element's based on certain restraints, similar to object-fit in CSS.
7 lines (6 loc) • 135 B
TypeScript
useElementFit is a React hook that allows you to measure and element's based on certain restraints, similar to object-fit in CSS.