Componentmedia1.25 KB gzipZero dependencies
PodcastPlayer
Episode card with art slot, play button, speed selector chips, skip buttons, and chapter ticks
Preview
Live Preview
Installation
Tokens guide →Add to your project via CLI (zero dependencies, code you own):
npx bigbullui add podcast-playerOr install the full npm package:
npm install bigbulluiUsage
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 helperZero 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 />| Prop | Type | Description |
|---|---|---|
| title | string | Primary heading or title text. |
| episodes | { id: string; title: string; artist?: string }[] | Episode list |
| activeId | string | Configures active id. |
| chapters | Chapter[] | Configures chapters. |
| onPlay | (episode: { id: string; title: string }) => void | Callback invoked on play. |
| onSkip | (seconds: number) => void | Callback invoked on skip. |
| className | string | Optional Tailwind or custom CSS classes merged with component styles. |