Waveform

Waveform

Engine-agnostic audio waveform scrubber featuring fluid vector splines, mirrored acoustic reflection, retro stepped meters, playhead needle, and hover timestamp seeking.

Interactive Waveform Scrubber

Fluid or bar audio scrubber with pointer dragging, playhead needle, vintage glow, and timestamp tooltip.

1:284:05
Variant
Accent

Fluid Spline Curve

Continuous Bezier vector wave with gradient fill and playhead needle.

2:064:24

Mirrored Reflection

SoundCloud-style upper and dimmed lower waveform reflection.

1:393:58

Quick Import

Example.tsxtsx
1import { Waveform } from "@rekodo/react";
2
3export function Example() {
4 return (
5 <Waveform
6 variant="curve"
7 accent="violet"
8 glow
9 progress={0.4}
10 duration={240}
11 showTime
12 onSeek={(p) => console.log("Seek to", p)}
13 />
14 );
15}

API Reference

Props accepted by this component.

PropTypeDefaultDescription
peaksnumber[]48 preset peaksNormalized amplitude peaks between 0 and 1.
progressnumber0Current playback progress between 0 and 1.
onSeek(progress: number) => voidundefinedEnables click, drag, and keyboard arrow seeking.
variant"curve" | "bars" | "mirror" | "steps""bars"Visual mode: continuous spline curve, organic bars, SoundCloud mirror, or retro meter steps.
accent"violet" | "rose" | "emerald" | "amber" | "zinc""violet"Active played bar/waveform color.
glowbooleanfalseAdds subtle analog tube/tape glow around the active track.
showNeedlebooleantrueDisplays a diamond playhead needle indicating exact playback location.
heightnumber56Waveform track height in pixels.
duration / showTimenumber / booleanundefined / falseTotal duration in seconds for hover preview and elapsed/total readout.