Skip to content
tastebase

tastebase

Sign in

Your agent gets your look, hearts and dislikes in every project. Folders follow you to every device.

We keep the name, avatar and email your provider shares. Nothing else.

liquid-glass

free

A headless React lens that bends live DOM, with copy modes that refract in Safari and Firefox, not only Chrome.

by Sam Asante GitHub npm
visit
liquid-glass website

Try these

Glisse

A faithful web implementation of Apple's Liquid Glass: refracting buttons, switches, tab bars and menus.

Liquid Glass React

A single <LiquidGlass> wrapper that adds refraction, chromatic aberration and elastic hover to any content.

Motion

The default animation library for React (formerly Framer Motion): springs, gestures, layout and exit animations.

Transitions.dev

Copy-ready CSS transitions for modals, menus, panels, toasts and state swaps, via a CLI or agent skill.

For your agent

Install
npm i @samasante/liquid-glass
Use it for
  • refraction that must show on Safari and iOS, not fall back to a flat blur
  • a lens over a photo that bends the image behind a notification
  • a magnifier lens that follows the pointer over a hero while its text stays selectable
  • lenses over a playing clip, one per control
Skip it when
  • ready-made glass switches, tab bars and menus: use glisse, which ships the controls
  • a glass look on many elements at once: each lens is an SVG filter, keep it to a few floating surfaces
  • glass over flat white or text-heavy UI: there is nothing to refract and contrast drops; use solid surfaces
What's inside6 free
  • Glass
  • GlassSwitch (example)
  • GlassSlider (example)
  • GlassNotification (example)
  • GlassContextMenu (example)
  • GlassVideoControls (example)
Facts
Frameworks
react
Styling
unstyled
Weight
small
Accessibility
ok
Maturity
experimental
License
MIT
Price
Free
Pairs with
Alternatives
Compare liquid-glass with its alternatives
import { Glass } from '@samasante/liquid-glass'

<Glass refract={<img src="/photo.jpg" alt="" />} behind="#222" width={420} height={84} radius={20}>
  <p className="px-5 py-4 text-white">Your order shipped</p>
</Glass>
Visit