terra vidhal

Podcast Chapter Editor

Component

About

A podcast chapter editor with a simulated playhead, a proportional chapter timeline with tick labels, coverage, gap and overlap auditing, a chapter list with position swapping and keyboard navigation, sort by start, editing of title, start, end and show notes, copyable chapter notes and undo.

Built with React and Tailwind. Copy the prompt and paste it into Claude Code, Cursor or Lovable: your agent adds Podcast Chapter Editor to your project and fits it to your theme.

Code

How Podcast Chapter Editor is used: the demo's code. The component's own source comes with a free account.

Usage.tsx

"use client";

/**
 * PrequelUI Animate — MIT — https://prequeluianimate.terravidhal.me
 */

import {
  PodcastChapterEditor,
  type PodcastChapter,
} from "@/components/ui/podcast-chapter-editor";

const CHAPTERS: PodcastChapter[] = [
  {
    id: "ch1",
    start: 0,
    end: 286,
    title: "Opening and week notes",
    notes: "Avery opens with the studio ritual and the one question of the week.",
  },
  {
    id: "ch2",
    start: 286,
    end: 742,
    title: "How the review started",
    notes: "Jordan explains the old checklist and the first attempts to simplify it.",
  },
  {
    id: "ch3",
    start: 742,
    end: 1408,
    title: "The field research",
    notes: "Three customer calls, two surprising quotes and the pattern behind them.",
  },
  {
    id: "ch4",
    start: 1408,
    end: 2126,
    title: "Designing the calmer flow",
    notes: "A walkthrough of the prototype, the dead ends and the final sequence.",
  },
  {
    id: "ch5",
    start: 2126,
    end: 2688,
    title: "What ships next",
    notes: "Release dates, open questions and how listeners can send feedback.",
  },
  {
    id: "ch6",
    start: 2688,
    end: 2790,
    title: "Outro",
    notes: "Thanks and the next episode teaser.",
  },
];

export default function PodcastChapterEditorDemo() {
  return (
    <main className="flex min-h-screen w-full items-start justify-center bg-gradient-to-b from-muted/40 via-background to-background px-4 py-8 sm:px-6">
      <PodcastChapterEditor
        episodeTitle="Episode 14 — The calmer review"
        duration={2820}
        chapters={CHAPTERS}
      />
    </main>
  );
}

Dependencies

More by terra vidhal

View all
  • Project Timeline

    Project Timeline

    30
  • Kanban Board

    Kanban Board

    20
  • Gravity Stars Background

    Gravity Stars Background

    20
  • Booking Calendar

    Booking Calendar

    18
  • Notification Center

    Notification Center

    16
  • Audio Waveform

    Audio Waveform

    16
  • Kpi Counter

    Kpi Counter

    16
  • Topographic Lines

    Topographic Lines

    16

Explore more

Part of PrequelUI Animate — browse the full library on 21st.dev.