Object Fit - 图1

Work in progress!

More detailed documentation is coming soon, but in the meantime here’s a quick class reference.

Class reference

Object Fit - 图2

Customizing

Responsive and State Variants

By default, no responsive, hover, focus, active, or group-hover variants are generated for object-fit utilities.

You can control which variants are generated for the object-fit utilities by modifying the objectFit property in the modules section of your Tailwind config file.

For example, this config will generate responsive, hover and focus variants:

Object Fit - 图3