Interactive Playground

Tweak every prop in real time. The aerial photo behind the glass makes the displacement and refraction effects easy to see — the code snippet at the bottom updates as you go.

Shape
Tint
Noise Type
Scale — warp intensity 20
Blur 0px
TSX — LIVE

    

React Usage

Drop-in examples — minimal, fully-customized, and polymorphic (render as a link, div, or any element via the as prop).

TSX
import { LiquidGlass } from 'liquidglass'

// Minimal
<LiquidGlass>Click me</LiquidGlass>

// Fully customized
<LiquidGlass
  variant="pill"
  tint="rgba(88,28,135,0.25)"
  blur={0}
  scale={24}
  hoverScale={46}
  noiseType="fbm"
  seed={88}
  frequency={4}
  octaves={4}
  rim="rgba(167,139,250,0.30)"
  specularColor="rgba(200,180,255,0.22)"
  shadow="0 8px 32px rgba(88,28,135,0.25)"
  animate
  wobble={false}
  padding="14px 36px"
  as="button"
  onClick={handleClick}
>
  Nebula
</LiquidGlass>

// Circle wobble
<LiquidGlass
  variant="circle"
  width={120}
  height={120}
  tint="rgba(127,29,29,0.28)"
  noiseType="ridged"
  scale={38}
  wobble
  rim="rgba(239,68,68,0.30)"
>
  🔥
</LiquidGlass>

// As nav link
<LiquidGlass as="a" href="/about" variant="pill" scale={12}>About</LiquidGlass>