Voice Recorder
Browser microphone capture with a recording timer, live waveform treatment, and playback.
Voice recorder
Capture a note directly from the browser.
Installation#
pnpm dlx shadcn@latest add @davinciui/voice-recorderUsage#
API Reference#
| Prop | Type | Default |
|---|---|---|
maxDurationMaximum recording duration in seconds. | number | 60 |
onRecordingCompleteReceives the captured audio blob. | (blob) => void | — |
Accessibility#
The record control is a button with a dynamic Start or Stop recording aria-label and aria-pressed, errors use role=status, and playback uses native audio controls. Timer and waveform changes are not announced, and the waveform is decorative.
Motion#
A red status dot pulses while recording and the button scales on hover and press; the waveform bars are static, not animated. No duration or easing props exist and prefers-reduced-motion is not detected.
View source
Keep in mind
Need a custom component?
I build bespoke UI components & websites tailored to your brand.

