Component libraryVoice recorder

Voice recorder

Pro

Record or attach a reviewable audio prompt through an injected media adapter.

npx shadcn@latest add @tidal-pro/voice-recorder
Desktop viewport

Installation

Pro source is gated. Configure the @tidal-pro registry using the agent guide. Create an access key from your account after purchasing.

Terminal
npx shadcn@latest add @tidal-pro/voice-recorder

Import components/ui/tidal.css, components/ui/voice-recorder.css, then add the component inside a tidal-scope wrapper. Its scoped design tokens keep it independent of your existing CSS.

Usage

Complete example source · Dependency and asset manifest

Loading the complete example…

API & behavior

Required title, visible consentNotice, controlled status (idle/requesting/recording/paused/ready/error), permission (prompt/granted/denied/unavailable), finite nonnegative durationMs and injected adapter. The adapter owns start, pause, resume, stop and discard; optional attach receives the selected local File. The component never accesses mediaDevices, MediaRecorder or a microphone by itself. Optional level is null/omitted or a finite 0..1 value. Ready requires a consumer-owned clip with nonblank src and accessible label; native audio controls never autoplay and default to preload none. Consumer-native action handlers run first and can prevent adapter calls. Async adapter operations receive a local pending guard, adapter failures show localized feedback and report through onAdapterError, and controlled status remains consumer-owned. Optional root attributes/ref, per-action native button props/React 19 refs, native attachment input props/ref, audio props/ref, formatters, error/footer, disabled, translated labels and heading level are supported. Owned accessible naming, replacement markup, action semantics, file-input type/value/form/name/capture and audio source/controls/autoplay are excluded and runtime-stripped. Permission denial and unavailable/error/configuration states remain explicit. No automatic permission request, recording timer, playback, upload, transcription, storage, analytics or custom network request is included. The demo uses a deterministic one-second synthetic tone WAV and an optional local object URL only after a person chooses a file.

Style with the --t-* CSS variables. Set data-theme="dark" on your tidal-scope wrapper for a dark surface. Motion respects the system’s reduced-motion preference.

Building with an agent?Give it the installation guide and component catalog.