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.
waveform-playground.tsx
1:284:05
Variant
Accent
Fluid Spline Curve
Continuous Bezier vector wave with gradient fill and playhead needle.
waveform-curve.tsx
2:064:24
Mirrored Reflection
SoundCloud-style upper and dimmed lower waveform reflection.
waveform-mirror.tsx
1:393:58
Quick Import
Example.tsxtsx
1import { Waveform } from "@rekodo/react";2
3export function Example() {4 return (5 <Waveform6 variant="curve"7 accent="violet"8 glow9 progress={0.4}10 duration={240}11 showTime12 onSeek={(p) => console.log("Seek to", p)}13 />14 );15}API Reference
Props accepted by this component.
| Prop | Type | Default | Description |
|---|---|---|---|
| peaks | number[] | 48 preset peaks | Normalized amplitude peaks between 0 and 1. |
| progress | number | 0 | Current playback progress between 0 and 1. |
| onSeek | (progress: number) => void | undefined | Enables 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. |
| glow | boolean | false | Adds subtle analog tube/tape glow around the active track. |
| showNeedle | boolean | true | Displays a diamond playhead needle indicating exact playback location. |
| height | number | 56 | Waveform track height in pixels. |
| duration / showTime | number / boolean | undefined / false | Total duration in seconds for hover preview and elapsed/total readout. |