Holiday sale: 40% off Pro with code · limited offer · ends Dec 31
See ProA set of capsule, circle and squircle buttons made of real refractive glass: an SVG displacement lens bends and magnifies whatever sits behind each button toward its rim, with a faint red and blue fringe and a specular rim highlight that follows the pointer. Pressing squashes the button with a spring that overshoots on release, from pointer, touch or keyboard. Browsers without SVG backdrop filters get a frosted blur, and reduced motion keeps the press instant and the backdrop still.
Included in Pro and aboveCompare plans
Live preview. Move the mouse, scroll and click inside the frame.
The copied code, markdown and prompt include the values you set here.
import { LiquidGlassButtons } from "@/components/hyperblur-pro/liquid-glass-buttons"
<LiquidGlassButtons />
<GlassButton variant="tinted" label="Continue" onClick={() => {}} />
<GlassButton shape="circle" icon={<PlayIcon />} aria-label="Play" />
<GlassButton shape="squircle" size="lg" icon={<CameraIcon />} aria-label="Capture" />| Prop | Type | Default | Description |
|---|---|---|---|
| image | string | "https://images.unsplash.com/photo-1490750967868-88aa4486c946" | LiquidGlassButtons: backdrop photo shown behind the glass. |
| title / subtitle | string | "Glass that bends light." | LiquidGlassButtons: heading and paragraph of the demo stage. |
| accent | string | "#ff9f0a" | Fill of tinted buttons and the focus ring. |
| appearance | "light" | "dark" | "auto" | "light" | Clear glass tint: bright, smoked, or following the system setting. |
| refraction | number | 1 | Strength of the edge lens. 0 turns it into plain frosted glass. |
| drift | boolean | true | LiquidGlassButtons: slow pan of the backdrop so the refraction visibly moves. |
| shape | "capsule" | "circle" | "squircle" | "capsule" | GlassButton: outline of the button. Squircles use a continuous curvature path. |
| variant | "clear" | "tinted" | "plain" | "clear" | GlassButton: clear glass, accent tinted glass, or no glass (for use inside another glass group). |
| size | "sm" | "md" | "lg" | "md" | GlassButton: 40, 52 or 76 px tall. |
| icon / label | ReactNode | undefined | GlassButton: glyph and text. Circles and squircles show only the icon, so pass aria-label. |
Source code is included in Pro and above