← All Components

AudioWaveform

Media

Canvas-based audio waveform visualization with playback progress.

Live Demo

Interactive waveform visualization. This component requires an audio URL to render the waveform.

Provide an audioUrl prop to render a live waveform with playback controls.

<AudioWaveform audioUrl="/audio/sample.mp3" height={80} waveColor="neutral" progressColor="accent" />

Usage

<script>
  import { AudioWaveform } from "jatui"
</script>

<AudioWaveform />

Props

PropTypeDefaultDescription
audioUrlstring-Audio file URL
heightnumber80Canvas height
waveColorstring"neutral"Waveform DaisyUI color
progressColorstring"accent"Progress DaisyUI color
interactivebooleantrueAllow click-to-seek