Thinking UI

Audio WaveformPRO

A recording pill whose bars react to the voice level.

Code

1 file · 96 lines of TypeScriptPRO

Audio Waveform is part of Pro

Get its source, the one-paste agent prompt and all 113 components, for a one-time $99.

Motion notes

  • Bars are tapered by a sine envelope, so the shape reads as a voice rather than a level meter.
  • Each bar eases toward its target every frame, written straight to the DOM with no React re-renders.
  • Pass a live level from the Web Audio API, or leave it out for the simulation.

Usage

Example
<AudioWaveform active={recording} level={micLevel} onStop={stop} />

Props

PropTypeDefaultDescription
activebooleantrueRecording in progress.
levelnumber—Live level 0–1. Leave it out to simulate.
barsnumber28Number of bars.
onStop() => void—Shows a stop button.