Last updated on March 19, 2026

Safe Area Insets

Edit

These utilities come from the tailwindcss-safe-area plugin, which is included automatically via nativewind/theme. They use env(safe-area-inset-*) values to ensure your content respects device safe areas such as notches, home indicators, and rounded corners.

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.

ClassSupport
m-safe
✅ Supported
mx-safe
✅ Supported
my-safe
✅ Supported
ms-safe
✅ Supported
me-safe
✅ Supported
mt-safe
✅ Supported
mr-safe
✅ Supported
mb-safe
✅ Supported
ml-safe
✅ Supported
p-safe
✅ Supported
px-safe
✅ Supported
py-safe
✅ Supported
ps-safe
✅ Supported
pe-safe
✅ Supported
pt-safe
✅ Supported
pr-safe
✅ Supported
pb-safe
✅ Supported
pl-safe
✅ Supported
min-h-screen-safe
✅ Supported
max-h-screen-safe
✅ Supported
h-screen-safe
✅ Supported
inset-safe
✅ Supported
top-safe
✅ Supported
right-safe
✅ Supported
bottom-safe
✅ Supported
left-safe
✅ Supported
pb-safe-offset-{n}
✅ Supported
pb-safe-or-{n}
✅ Supported
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

On this page