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 barWhen 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
| Prop | Type | Required | Description |
|---|---|---|---|
values | number[] | — | Amplitudes 0-1, one per bar. Omit and set live for a self-driving demo. |
bars | number | — | Bar count used when values is omitted. |
height | number | — | |
live | boolean | — | Animate from an internal oscillator. Respects prefers-reduced-motion. |
peak | boolean | — | Add a soft bloom — for a signal that is clipping or at peak. |
caption | string | — |