Holiday sale: 40% off Pro with code · limited offer · ends Dec 31
See ProA now-playing screen whose backdrop is painted from the album art: the three dominant colors of the cover drift as soft blurred blobs behind frosted glass controls and tint the stage around the phone. The scrubber swells under the finger, stretches with drag speed and rubber-bands past both ends, timed lyric lines scroll and light up as the song plays, and the floating mini-player capsule morphs into the full player on a spring (tap it, or drag it up and flick it back down) with the cover flying between both layouts. Everything is keyboard reachable with slider roles, the backdrop stays still under reduced motion and falls back to frosted blur where SVG refraction is unavailable.
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 { MusicPlayerGlass } from "@/components/hyperblur-pro/music-player-glass"
<MusicPlayerGlass />
<MusicPlayerGlass
frame={false}
tracks={[{ title: "Night Drive", artist: "Oona", cover: "/covers/night.jpg", duration: 201 }]}
onTrackChange={(i) => console.log(i)}
/>| Prop | Type | Default | Description |
|---|---|---|---|
| tracks | MusicTrack[] | 6 sample tracks with Unsplash covers | Tracks with title, artist, cover URL, duration in seconds and optional timed lyrics as [seconds, line] pairs. |
| initialTrack | number | 0 | Index of the track loaded first. |
| defaultExpanded | boolean | true | Start with the full player open instead of the mini capsule. |
| autoPlay | boolean | true | Start the simulated playback clock immediately. |
| showLyrics | boolean | false | Open on the lyrics view. |
| appearance | "light" | "dark" | "auto" | "dark" | Theme of the library behind the player and of the mini capsule glass. |
| accent | string | "#ff5a7a" | Favorite heart, playing indicator and focus ring color. |
| frame | boolean | true | Show the screen inside a drawn handset frame. Set false to fill the parent. |
| onTrackChange / onPlayChange / onExpandedChange | (value) => void | undefined | Called when the track, the play state or the expanded state changes. |
Source code is included in Pro and above