Fit

Sets how the content of a replaced element, such as an image or video, should be resized to fit its container


Usage

Add fit-* class to <img> or <video> tag.

<img src="" class="fit-cover"/>

Classes

ClassValue
fit-none
fit-auto
fit-fill
fit-contain
fit-cover
fit-scale-down
 

Add @s, @m, or @l suffix to support breakpoints