Skip to main content

GlassBackground

const GlassBackground: NitroUI view component

A Liquid Glass backdrop on iOS 26 and later; elsewhere, including Android, it fills with fallbackColor. It takes no children: place it behind content, for example absolutely filling a container, and give it the container's style.cornerRadius.

<GlassBackground
glassStyle="clear"
tint="#007aff33"
fallbackColor={0xf7f7f8f2}
style={{ cornerRadius: 20 }}
layout={{ position: 'absolute', left: 0, right: 0, top: 0, bottom: 0 }}
/>

Props​

PropTypeDefaultDescription
glassStyleGlassStyle'regular'Glass variant.
tintColorValueUntintedTints the glass.
fallbackColorColorValueNoneFill shown instead of glass before iOS 26 and on Android.
layout, style, other view propsNitroUI SharedViewPropsEverything a NitroUI view takes except children.