useLiquidGlass

The refraction engine behind AppLiquidGlass, AppGlassContainer and AppMagnifier. Builds a lens map for an element, keeps it in step with its size, settings and theme, and says how the current browser can bend what is behind it. Most apps use AppLiquidGlass rather than calling this directly.

Install: pnpm add-composable useLiquidGlass

A custom glass surface

Put the filter on the layer that refracts. When supported is false, nothing bends and the frost alone is shown.

API