Field glass Press, then drag a little.

Studio

Tune a slab.

These are the real glass() options. The snippet follows every control.

Rendering

Material
Appearance
Profile
Ground
36px
28px
22px
8px
0.35
1.1
-135°
1
Tint
Shadow
Press response
/* .slab {   width: 280px;   height: 168px; } */
import { glass, attachPress } from "glassy-liquid";

const slab = document.querySelector("#slab");
if (!(slab instanceof HTMLElement)) throw new Error("Add an element with id slab.");
slab.style.width = "280px";
slab.style.height = "168px";
const surface = glass(slab, {
  material: "regular",
  appearance: "light",
  radius: 36,
  refraction: 28,
  bezel: 22,
  blur: 8,
  dispersion: 0.35,
  specular: 1.1,
  lightAngle: -135,
  zoom: 1,
  shadow: true,
  profile: "squircle",
});
attachPress(slab, surface);