deepraj21

Glass Player

Component

About

A frosted-glass now-playing music widget with album art, a seek scrubber, transport controls and a volume slider.

Built with React and Tailwind. Copy the prompt and paste it into Claude Code, Cursor or Lovable: your agent adds Glass Player to your project and fits it to your theme.

Code

How Glass Player is used: the demo's code. The component's own source comes with a free account.

Usage.tsx

"use client";

import { GlassPlayer } from "@/components/ui/glass-player";

export default function GlassPlayerDemo() {
  return (
    <div className="relative flex min-h-[480px] w-full items-center justify-center overflow-hidden rounded-xl bg-[conic-gradient(from_180deg,#60a5fa,#f472b6,#facc15,#34d399,#60a5fa)] p-8">
      <GlassPlayer
        title="Night Drive"
        artist="Lo-Fi Collective"
        duration={198}
      />
    </div>
  );
}

Dependencies

More by deepraj21

View all
  • Glass Sidebar

    Glass Sidebar

    39
  • Glass Message

    Glass Message

    30
  • Glass Date Picker

    Glass Date Picker

    19
  • Glass Tab Bar

    Glass Tab Bar

    17
  • Glass Notification

    Glass Notification

    11
  • Glass QR Code

    Glass QR Code

    9
  • Glass Input

    Glass Input

    9
  • Glass Switch

    Glass Switch

    9