Patterns
MediaPlayer
HTML5 audio player with progress bar, play/pause/seek, and volume control.
Quick Preview
๐ต
Demo Track
Sample Artist
0:000:00
Installation
npm install lucide-react
// Copy component fromsrc/components/patterns/MediaPlayer.tsx
Usage
import MediaPlayer from '@/components/patterns/MediaPlayer'<MediaPlayersrc="/audio/track.mp3"title="My Track"artist="Artist Name"/>
Prompt Preview
Copy a prompt that recreates this UI
Paste this into your AI coding assistant to generate code that closely matches the reference, including color, size, shape, typography, spacing, and polish.
Copy-ready AI prompt
Starts from the current visual reference and project constraints.
Tweak only product-specific copy or data after the first generation pass.
Props
| Prop | Type | Default | Description |
|---|---|---|---|
src | string | - | Audio source URL |
title | string | - | Track title |
artist | string | - | Artist name |
coverUrl | string | - | Album cover image URL |
className | string | - | Additional CSS classes |