In Tailwind CSS, the Object-Fit utility classes are used to control how an image or video content is scaled and positioned within its container.

The object-fit property determines how the content fills the container while preserving its aspect ratio.

Untitled

Object-Fit Utility: object-contain

Object-Fit Utility: object-cover

Object-Fit Utility: object-fill