terra vidhal

Audio Waveform

Component 7

About

A visual audio player with a generated waveform, click-and-drag scrubbing, a smooth playhead, transport controls, playback-rate cycling, volume and mute, an elapsed/remaining time toggle and a pulsing equaliser. The waveform is a keyboard slider with Space to toggle and arrows to seek, and scrubbing pauses the simulated clock.

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

Code

How Audio Waveform 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 { AudioWaveform } from "@/components/ui/audio-waveform";

export default function AudioWaveformDemo() {
  return (
    <main className="flex min-h-screen w-full items-center justify-center bg-background px-6 py-12">
      <AudioWaveform
        title="Untitled Sketch No. 4"
        artist="Room Tone"
        duration={214}
        defaultTime={74}
        speed={1}
      />
    </main>
  );
}

Dependencies

More by terra vidhal

View all
  • Gravity Stars Background

    Gravity Stars Background

    13
  • Booking Calendar

    Booking Calendar

    10
  • Topographic Lines

    Topographic Lines

    8
  • Spotlight Card

    Spotlight Card

    8
  • Command Palette

    Command Palette

    6
  • Kpi Counter

    Kpi Counter

    6
  • Notification Center

    Notification Center

    5
  • Marquee

    Marquee

    4

Explore more

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