Skip to main content
Version: v4

Box Shadow

NativeWind uses the scaling system from react-native-shadow-generator to help generate cross platform shadows.

Usage

Please refer to the

documentation on the Tailwind CSS website

caution

On native, shadows may not appear if a background color is not set

Example

Compatibility

ClassSupport
shadow✅ Full Support
shadow-{n}✅ Full Support
shadow-none✅ Full Support
shadow-[n]🌐 Web only
shadow-inner🌐 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