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.
4 lines (3 loc) • 122 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.