Holiday sale: 40% off Pro with code · limited offer · ends Dec 31
See ProThick glass sliders in the style of system volume and brightness controls, vertical or horizontal. The level is a liquid that sloshes and settles when you move quickly, the whole slider stretches like rubber when you drag past either end, and the icon changes shape with the value: speaker waves appear one by one, sun rays grow and turn, a flame swells. Relative dragging, tap to jump, full slider keyboard support and aria values, a frosted fallback without SVG backdrop filters and a still surface under reduced motion.
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 { GlassSliderPack } from "@/components/hyperblur-pro/glass-slider-pack"
<GlassSliderPack />
<GlassSlider label="Volume" icon="volume" defaultValue={0.4} onChange={(v) => console.log(v)} />
<GlassSlider label="Brightness" icon="brightness" orientation="horizontal" fill="#ffd60a" />| Prop | Type | Default | Description |
|---|---|---|---|
| value / defaultValue | number | 0.5 | GlassSlider: controlled or uncontrolled level from 0 to 1. |
| onChange / onCommit | (value: number) => void | undefined | GlassSlider: called while dragging and when the gesture ends. |
| orientation | "vertical" | "horizontal" | "vertical" | GlassSlider: direction of the fill. |
| length / thickness | number | 240 / 92 (vertical), 340 / 60 (horizontal) | GlassSlider: size in pixels. |
| icon | "volume" | "brightness" | "warmth" | "none" | "volume" | GlassSlider: glyph that morphs with the value and inverts where the liquid covers it. |
| fill | string | "#ffffff" | Color of the liquid. |
| appearance | "light" | "dark" | "auto" | "dark" | Tint of the empty glass. |
| liquid | boolean | true | Slosh the surface when the value moves fast. |
| refraction | number | 1 | Strength of the glass edge lens. |
| image / title / subtitle | string | "https://images.unsplash.com/photo-1508739773434-c26b3d09e071" | GlassSliderPack: backdrop photo and copy of the demo stage. |
Source code is included in Pro and above