Kits
AudioVisualizer
BetaBeta — the props contract is close to final, but small breaking changes can still land.Audio visualization with waveform, line envelope, and frequency bar alternatives. Choose the implementation that fits your audio data.
Alternatives
Composition
Levels-driven visualizer
Waveform and line envelope alternatives read amplitude history. Frequency bars read spectrum bands and add alignment, mirroring, idle, and loading options. Each alternative has its own install and import.
- <AudioVisualizer />
Installation
Install the Waveform alternative. To adopt another implementation, install its registry item and update the import in your project. Check its data requirements and options in Usage.
Usage
Dependencies
Audio visualizer levels
src/registry/lib/audio-visualizer-levels.tsUtilRaw code
Installed source for the Waveform alternative
Knobs
Typed custom properties the recipe paints with. Set one on the root — style, a utility class, or a skin — and every slot inherits it.
--cui-audio-visualizer-* · 8 knobsHow the cascade resolves--cui-audio-visualizer-bar-size<length-percentage>calc(var(--spacing) * 1)--cui-audio-visualizer-bar-gap<length-percentage>1px--cui-audio-visualizer-radius<length-percentage>var(--radius-control)--cui-audio-visualizer-bar-radius<length-percentage>var(--radius-control)--cui-audio-visualizer-bar-background<color>oklch(from var(--primary) l c h / 0.8)--cui-audio-visualizer-line-fill<color>oklch(from var(--primary) l c h / 0.18)--cui-audio-visualizer-line-stroke<color>oklch(from var(--primary) l c h / 0.8)--cui-audio-visualizer-baseline-stroke<color>oklch(from var(--border) l c h / 0.55)