Skip to content

v1.3.0

Latest

Choose a tag to compare

@LeonardSEO LeonardSEO released this 13 Nov 12:24
· 4 commits to main since this release

Install with npm install @vepando/liquid-glass-react. The engine is unchanged since 1.2.1; this release adds six components modelled on iOS 26 and a rewritten readme.

New components

Install them as source through the shadcn CLI:

npx shadcn@latest add https://leonardseo.github.io/liquid-glass-react/r/glass-switch.json
  • GlassSwitch (glass-switch): the iOS 26 switch. Its white capsule lifts into a clear glass lens as it toggles and stays glass while held.
  • GlassSlider (glass-slider): a 6px track whose thumb becomes a lens while dragged and stretches the track past either end. Supports min, max, step, keyboard and forms.
  • GlassSegmentedControl (glass-segmented-control): a white pill that rises into a lens you can drag between segments. A radio group with arrow keys.
  • GlassToolbar (glass-toolbar): a group of actions on one shared glass capsule, with arrow key navigation from Base UI.
  • GlassInput (glass-input): a text field on glass with an icon, a trailing slot and a clear button, such as a search field.
  • GlassMenu (glass-menu): a menu that morphs out of its glass button and shrinks back into it.

Shared lens

The switch, slider, segmented control and tab bar now share one glass lens and one spring (glass-lens), which installs automatically. The tab bar's lens gets the same optics: a narrow rim, a clear middle and no colour fringe.

Fixes

  • The tab bar and segmented control read the pointer in layout pixels, so the glass lands in the right place inside scaled content.
  • Component rules are scoped so a page's own button and input styles cannot override them.
  • The new components style themselves in their own CSS and work without Tailwind.

Docs and demo

  • The readme is rewritten as an overview: the two ways to use the library, one table of all components and shorter reference sections.
  • The showcase has a settings panel that switches between light, dark and automatic, and a Safari-like scene with a search field, toolbar and menu.