UNPKG

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
declare enum ScaleMode { CONTAIN = "contain", COVER = "cover", ALIGN_ONLY = "align-only" } export default ScaleMode;