Skip to main content

SignalWave

Live signal for the Industry theme: audio level, vibration, flow rate, current draw — anything sampled fast enough that individual values do not matter but the shape does.

Signature
Density
Viewport
Theme and light/dark are set in the top bar
Live demo
Open ↗

When to use​

Live signal for the Industry theme: audio level, vibration, flow rate, current draw — anything sampled fast enough that individual values do not matter but the shape does.

Accessibility​

Fully keyboard operable: Tab to focus, Enter/Space to activate. The visible focus ring uses --focus-ring — never remove it. Provide an accessible label (aria-label) for icon-only controls.

Install and import​

npx shadcn@latest add @prism/signal-wave
import { SignalWave } from '@/components/prism/SignalWave';

In a no-build prototype, read it from the bundle instead: const { SignalWave } = window.PrismDesignSystem_39d121;

Props​

PropTypeRequiredDescription
valuesnumber[]—Amplitudes 0-1, one per bar. Omit and set live for a self-driving demo.
barsnumber—Bar count used when values is omitted.
heightnumber—
liveboolean—Animate from an internal oscillator. Respects prefers-reduced-motion.
peakboolean—Add a soft bloom — for a signal that is clipping or at peak.
captionstring—