Skip to content

v1.2.1

Choose a tag to compare

@LeonardSEO LeonardSEO released this 09 Nov 11:47
· 12 commits to main since this release

Install with npm install @vepando/liquid-glass-react. This release covers everything since 1.0.1.

Glass styles

  • variant picks the glass: regular (frosted, the default, matched against macOS's NSGlassEffectView), clear (see-through with a refracting rim) or identity (no glass).
  • Glass follows a dark class or data-theme="dark" on the element or an ancestor.

Changed default: <LiquidGlass> now looks like regular. The earlier look is still available through variant="lens".

Components

Button, Tabs, Tab Bar, Dialog and Card install as source through the shadcn CLI:

npx shadcn@latest add https://leonardseo.github.io/liquid-glass-react/r/glass-button.json
  • New GlassTabBar: a quiet pill at rest and a magnifying lens you can drag between items, as tabs or as a navigation.
  • Materials: regular, clear and bar.

Engine

  • useLiquidGlass gives you the engine without the div, for Base UI, Radix or your own markup.
  • LiquidGlass forwards ref and takes a render prop for other elements.
  • radius="auto" reads the CSS border radius, and stylesheet tokens are picked up on theme changes.
  • Styles for prefers-reduced-transparency, prefers-contrast and forced-colors.

Fixes

  • A forwarded ref no longer disables refraction under React 19.
  • The stylesheet no longer loses backdrop-filter to CSS minifiers.
  • GlassCard and GlassDialog keep your own pointer handlers and style.
  • Dark and high-contrast styles now also apply in the frosted Safari and Firefox fallback.

Demo

The live demo has a new overview, a glass lab and a showcase.