Componentmedia1.25 KB gzipZero dependencies

PodcastPlayer

Episode card with art slot, play button, speed selector chips, skip buttons, and chapter ticks

Preview

Live Preview
Open ↗

Installation

Tokens guide →

Add to your project via CLI (zero dependencies, code you own):

npx bigbullui add podcast-player

Or install the full npm package:

npm install bigbullui

Usage

tsx3 lines
import { PodcastPlayer } from "@/components/ui/podcast-player" <PodcastPlayer title="Podcast Title" episodes={episodes} activeId={activeId} chapters={chapters} onPlay={handlePlay} onSkip={handleSkip} />

Source code

podcast-player.tsx + 1 helper

Zero third-party dependencies (2 local files shown in tabs below).

tsxpodcast-player.tsx186 lines
"use client"; import * as React from "react";import { cn } from "./lib/utils"; export interface Chapter {  time: number; // seconds  title: string;} export interface PodcastPlayerProps {  title: string;  episodes: { id: string; title: string; artist?: string }[];  activeId?: string;  chapters?: Chapter[];  onPlay?: (episode: { id: string; title: string }) => void;  onSkip?: (seconds: number) => void;  className?: string;

Props

Interactive Prop Playground

Tweak parsed AST props below to generate ready-to-paste JSX.

tsx3 lines
import { PodcastPlayer } from "@/components/ui/podcast-player"; <PodcastPlayer />
PropTypeDescription
titlestringPrimary heading or title text.
episodes{ id: string; title: string; artist?: string }[]Episode list
activeIdstringConfigures active id.
chaptersChapter[]Configures chapters.
onPlay(episode: { id: string; title: string }) => voidCallback invoked on play.
onSkip(seconds: number) => voidCallback invoked on skip.
classNamestringOptional Tailwind or custom CSS classes merged with component styles.