Last updated on September 14, 2026
Object Fit
Usage
Please refer to the documentation on the Tailwind CSS website
RC notes
For React Native Web Image and Expo Image, use explicit resizeMode or contentFit props. A utility on the outer View does not establish the nested image fit. Native image adapters and HTML img elements have separate contracts.
Compatibility
Support applies to the documented values and platforms. See the RC compatibility notes for value limits and native migration alternatives. Browser behavior is evaluated separately.
| Class | Support |
|---|---|
| ๐ Web only |
| ๐ Web only |
| ๐ Web only |
| ๐ Web only |
| ๐ Web only |
Legend
Class
-{n} Supports values from theme
-[n] Supports arbitrary values
Icon
โ Supported
โ๏ธ Partial support on native
๐งช Experimental support on native
๐ฑ Native only
Not supported on native: rejected by the native CSS engine
๐ Web only