npx gluestack-ui@alpha add liquid-glassimport {
GlassView,
GlassContainer,
isLiquidGlassAvailable,
isGlassEffectAPIAvailable,
} from '@/components/ui/liquid-glass';
export default () => (
<GlassContainer className="p-4 rounded-2xl">
<GlassView className="p-6 rounded-xl items-center">
<Text className="text-foreground font-semibold">Glass Effect</Text>
</GlassView>
</GlassContainer>
);
| Prop | Type | Default | Description |
|---|---|---|---|
glassEffectStyle | 'regular' | 'clear' | 'regular' | The visual style of the glass effect. 'regular' gives a frosted look; 'clear' is more transparent. |
tintColor | string | - | A color tint applied on top of the glass blur effect. |
isInteractive | boolean | false | When true, the glass effect responds to user interaction (e.g. press feedback on iOS 26+ liquid glass). |
colorScheme | 'auto' | 'light' | 'dark' | 'auto' | Overrides the system appearance for the glass effect. Use when your app has its own theme toggle independent of the system setting. |
className | string | - | NativeWind className for layout, sizing, border radius, and other style utilities. |
| Prop | Type | Default | Description |
|---|---|---|---|
spacing | number | - | The distance threshold at which glass elements start merging together. Controls when adjacent GlassView elements blend into one surface. |
className | string | - | NativeWind className for layout, sizing, padding, and other style utilities. |
import { isLiquidGlassAvailable } from '@/components/ui/liquid-glass';
import { isGlassEffectAPIAvailable } from '@/components/ui/liquid-glass';