N
Nyxis
Multimodal

VoiceWaveform

Bar-based audio waveform — live recording, playback progress, or idle baseline.

Preview

recording

playback

idle

Installation

pnpm add nyxis-ui

Usage

import { VoiceWaveform } from 'nyxis-ui';

// Live recording (no precomputed bars needed — animates from sine + jitter):
<VoiceWaveform isRecording />

// Static playback bars + progress fill:
<VoiceWaveform bars={amplitudes} isPlaying progress={progress} />

// Idle / placeholder:
<VoiceWaveform bars={amplitudes} />

Modes

ModeWhenLook
RecordingisRecordingBars animate live with destructive (red) tone.
PlaybackisPlaying + progressFilled portion in primary tone; remainder muted.
IdleneitherFlat baseline, all bars muted.

Composition

Used internally by <AudioPlayer> for the visual track. Standalone, it’s useful as a microphone-recording indicator above a chat composer.