Read the output
Mix bus · supplied snapshot
Stereo output
Peak: -3.2 dB
Peak: -4.8 dB
Levels and peaks come from the audio host.
Shows supplied channel levels and peaks in decibels, with bounded native meters and explicit missing readings.
Output
Peak: -3 dB
Peak: -4 dB
Mix bus · supplied snapshot
Stereo output
Peak: -3.2 dB
Peak: -4.8 dB
Levels and peaks come from the audio host.
Three ways in. They share one source, so the pixels match whichever you pick.
npm install @noorddev/vlak-react
// once, next to your app's root
import "@noorddev/vlak-react/css";
import { AudioMeter } from "@noorddev/vlak-react";Precompiled React and one stylesheet. No compiler to configure. Per-component imports work too: @noorddev/vlak-react/components/audio-meter.
npx @noorddev/vlak-cli add audio-meter
The StyleX leaf lands in components/vlak/, for your own compiler to own. See StyleX.
npx shadcn add https://vlak.dev/r/audio-meter.json
The same registry item, installed by shadcn's CLI.
<link rel="stylesheet" href="node_modules/@noorddev/vlak/css/vlak.css" />
No React. Link vlak.css and use the markup and classes below.
import { AudioMeter } from "@noorddev/vlak-react";
<AudioMeter label="Output" channels={[{ id: "left", label: "Left", level: -12, peak: -3 }, { id: "right", label: "Right", level: -15, peak: -4 }]} />Supplied channel levels and peaks; no audio analysis or peak holding.
| Prop | Type | Default | Description |
|---|---|---|---|
labelrequired | ReactNode | ||
channelsrequired | AudioMeterChannel[] | ||
min | number | -60 | |
max | number | 0 |
Also accepts HTMLAttributes<HTMLDivElement>.
<div class="rs-audio-meter"><p class="rs-audio-meter-label">Output</p><div class="rs-audio-meter-channel"><div class="rs-audio-meter-text"><span id="left-channel">Left</span><span>-12 dB</span></div><meter class="rs-audio-meter-bar" min="-60" max="0" value="-12" aria-labelledby="left-channel">-12 dB</meter><p class="rs-audio-meter-note">Peak: -3 dB</p></div></div>