Object Fit - Tailwind CSS

Utilities for controlling how a replaced element's content should be resized.