Object Fit

Usage

Please refer to the documentation on the Tailwind CSS website

Compatibility

ClassSupport
object-contain
๐ŸŒ Web only
object-cover
๐ŸŒ Web only
object-fill
๐ŸŒ Web only
object-none
๐ŸŒ Web only
object-scale-down
๐ŸŒ Web only
Legend

Class

-{n} Supports values from theme

-[n] Supports arbitrary values

Icon

โœ… Full support

โœ”๏ธ Partial support on native

๐Ÿงช Experimental support on native

๐Ÿ“ฑ Native only

๐ŸŒ Web only

Contributors

We are looking for contributors for the following:

Add object-fit

object-fit was added in React Native 0.71

On this page