Glass Lab

Pro

Interactive glass pane that responds to touch: light gathers under your finger and, on the web, the glass bends while you hold, then settles on release. Includes a frost control that works everywhere.

Preview

Installation

npx @lumioui/cli add pro/glass-lab

Usage

import { GlassLab } from "@/components/ui/glass-lab/glass-lab";
<GlassLab />

API reference

Prop Type Default
defaultBend number

Resting bend (0–1). Touching the pane raises it toward full.

0.5
defaultFrost number

Initial frost (0–1), adjustable with the Frost slider.

0.5
defaultSheen number

Peak strength of the specular sheen (0–1).

0.6
label string

The word shown on the glass pane.

"Liquid"
caption string

Optional caption under the label.

—
imageUrl string

Photo the glass refracts. Without one, a built-in colour field.

—
className string —