Back to blocks
Portfolio Profile Music Player React component

What is this?

A pill music player fixed to the bottom-right. Pass a YouTube URL or video ID to play and pause via a hidden iframe. Swap the artist and track label, then drop it onto a portfolio or profile page.

Full TSX source. No account needed.

portfolio-profile-music-player.tsx

"use client"; import {  useCallback,  useEffect,  useId,  useRef,  useState,

Read the guide

BlockPass

Portfolio Profile Music Player

A pill music player fixed to the bottom-right. Pass a YouTube URL or video ID to play and pause via a hidden iframe. Swap the artist and track label, then drop it onto a portfolio or profile page.

Checking access…
Live Preview

Verified Technical Spec

Animation
CSS / Tailwind
Reduced motion
Verified
Keyboard focus
Verified
Compatibility
Tailwind CSS v3.4 + v4 · React 19 / Next.js 15 App Router + Vite / Remix compatible

Included

  • Copy source into Cursor or Claude for agent install
  • Responsive on phone, tablet, and desktop
  • Finished React · TypeScript · Tailwind CSS UI

Dependencies

  • React 19.0.0
  • Typescript 5.7.2
  • Tailwindcss 3.4.16

Tech Stack

  • React
  • TypeScript
  • Tailwind CSS

Version 1.0.0