Waveform
Audio-visualizer waveform — equalizer bars, a filled wave, an oscilloscope line, or a dot matrix — driven by a simulated signal whose amplitude you can map to your own audio level
Props
Prop
Details
style"bars" | "wave" | "line" | "dots"Default:
barsVisualizer style: equalizer bars, a filled wave envelope, an oscilloscope line, or a dot matrix
style"bars" | "wave" | "line" | "dots"Default: barsVisualizer style: equalizer bars, a filled wave envelope, an oscilloscope line, or a dot matrix
colorAstringDefault:
#3b5bffColor at the start
colorAstringDefault: #3b5bffColor at the start
colorBstringDefault:
#ff3bd4Color at the end
colorBstringDefault: #ff3bd4Color at the end
stopsobjectDefault:
nullMulti-stop gradient colors (overrides Color A / Color B when set)
stopsobjectDefault: nullMulti-stop gradient colors (overrides Color A / Color B when set)
colorSpace"linear" | "oklch" | "oklab" | "hsl" | "hsv" | "lch"Default:
oklabColor space for the start→end gradient
colorSpace"linear" | "oklch" | "oklab" | "hsl" | "hsv" | "lch"Default: oklabColor space for the start→end gradient
from{x: number, y: number}Default:
{"x":0,"y":0.5}Where the waveform starts (Color A end)
from{x: number, y: number}Default: {"x":0,"y":0.5}Where the waveform starts (Color A end)
to{x: number, y: number}Default:
{"x":1,"y":0.5}Where the waveform ends (Color B end)
to{x: number, y: number}Default: {"x":1,"y":0.5}Where the waveform ends (Color B end)
amplitudenumberDefault:
1Overall signal level (0 = silence). Map this to your own audio level to make the waveform react to real sound.
amplitudenumberDefault: 1Overall signal level (0 = silence). Map this to your own audio level to make the waveform react to real sound.
frequencynumberDefault:
1How busy the signal is across the width (higher = more peaks)
frequencynumberDefault: 1How busy the signal is across the width (higher = more peaks)
heightnumberDefault:
0.6Maximum vertical extent of the waveform as a fraction of the canvas height
heightnumberDefault: 0.6Maximum vertical extent of the waveform as a fraction of the canvas height
align"mirrored" | "top" | "bottom"Default:
mirroredWhich side of the start→end baseline the waveform grows on: mirrored around it, above it (top), or below it (bottom)
align"mirrored" | "top" | "bottom"Default: mirroredWhich side of the start→end baseline the waveform grows on: mirrored around it, above it (top), or below it (bottom)
countnumberDefault:
32Number of bars (or dot columns) across the width
countnumberDefault: 32Number of bars (or dot columns) across the width
barWidthnumberDefault:
0.6Bar thickness as a fraction of its column (1 = bars touch)
barWidthnumberDefault: 0.6Bar thickness as a fraction of its column (1 = bars touch)
roundingnumberDefault:
1Rounds the bar ends (0 = square, 1 = fully rounded caps)
roundingnumberDefault: 1Rounds the bar ends (0 = square, 1 = fully rounded caps)
dotSizenumberDefault:
0.7Dot diameter as a fraction of its cell
dotSizenumberDefault: 0.7Dot diameter as a fraction of its cell
lineWidthnumberDefault:
0.006Stroke thickness of the line. A value of one (1) matches the canvas height.
lineWidthnumberDefault: 0.006Stroke thickness of the line. A value of one (1) matches the canvas height.
softnessnumberDefault:
0Feathers the wave's edge into a glow
softnessnumberDefault: 0Feathers the wave's edge into a glow
speednumberDefault:
1Animation speed of the simulated signal
speednumberDefault: 1Animation speed of the simulated signal
seednumberDefault:
1Adjusts the starting state, useful for variation
seednumberDefault: 1Adjusts the starting state, useful for variation