Voice waveform
Bars that move while someone speaks. Click to pause.
Installation
pnpm add @heyramzi/uiUsage
import { VoiceWaveform } from "@heyramzi/ui/ai/voice-waveform";Keyboard and accessibility
- The waveform is hidden from screen readers and doesn't say whether it's live.
- Put it inside a control that carries the name and state, like the demo's button that reports pressed.
- With reduced motion on, the bars stop moving.
API reference
activeboolean- Default
false classstringbarsreadonly number[]- Default
DEFAULT_BARS ...rest- Every prop of
HTMLAttributes<HTMLDivElement>fromsvelte/elements
| Prop | Type | Default |
|---|---|---|
active | boolean | false |
class | string | |
bars | readonly number[] | DEFAULT_BARS |
...rest | Every prop of HTMLAttributes<HTMLDivElement> from svelte/elements | |