Command Palette

Search for a command to run...

Docs
Podcast Card Player

Podcast Card Player

Card-style podcast player with cover art, episode info, and audio controls

Loading...

Installation

Usage

import PodcastCardPlayer from "@/components/ruixen/podcast-card-player";
 
export default function App() {
  return (
    <PodcastCardPlayer
      imageSrc="https://example.com/podcast-cover.jpg"
      title="The Tech Podcast"
      episode="Episode 42: AI Revolution"
      audioSrc="https://example.com/episode-42.mp3"
      width={350}
    />
  );
}

Props

PropTypeDefaultDescription
imageSrcstring-URL of the podcast cover image
titlestring-Podcast title
episodestring-Episode title/description
audioSrcstring-URL of the audio file
widthnumber350Width of the card
classNamestring-Additional CSS classes

Features

  • Cover Art Display: Large podcast cover image
  • Episode Information: Title and episode details
  • Progress Bar: Visual progress indicator
  • Seek Control: Click progress bar to seek
  • Play/Pause Button: Audio playback controls
  • Time Display: Current time and total duration
  • Card Layout: Clean, organized design
  • Responsive: Adapts to different screen sizes

Layout Structure

The card includes:

  1. Cover Image: 160px height, rounded corners
  2. Title Section: Podcast and episode names
  3. Progress Bar: Clickable seek control
  4. Controls Row: Play button and time display

Time Format

Times are displayed in MM:SS format:

  • Current: 2:34
  • Total: 45:12