Skip to main content
Version: v4

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