A thread of voice messages with waveforms, speed control, transcripts and recording.
Import it and pass your content. The props that matter most are listed next.
"use client";
import * as React from "react";
import { VoiceNotes, type VoiceNote } from "@/components/ui/notchset/voice-notes";
export function ThreadNotes({ initial, upload }: { initial: VoiceNote[]; upload: (levels: number[], duration: number) => Promise<string> }) {
const [notes, setNotes] = React.useState(initial);
return (
<VoiceNotes
title="Maya Kerr"
subtitle="#RELAY-EVALS"
initials="MK"
me={{ initials: "AR" }}
notes={notes}
onSend={async (d) => {
const id = crypto.randomUUID();
setNotes((n) => [...n, { id, mine: true, author: "YOU", initials: "AR", time: new Date().toTimeString().slice(0, 5), duration: d.duration, levels: d.levels, transcript: null }]);
const transcript = await upload(d.levels, d.duration);
setNotes((n) => n.map((x) => (x.id === id ? { ...x, transcript } : x)));
}}
/>
);
}notes–
{ id, mine?, author, initials, avatar?, time, duration, levels, transcript?, src? }[]Null transcript shows TRANSCRIBING.
onSend–
(draft: { duration, levels, audio? }) => voidAdd the note to your list. If it throws or returns a rejected promise, the draft stays for Retry until a send succeeds; a draft is never sent twice at once.
captureAudio / maxSeconds–
boolean / numberAlso record audio (MediaRecorder); cap 30s.
simulate–
booleanSynthetic levels instead of the microphone, for demos and docs: nothing is requested or stored.
onRecordError–
(error) => voidThe microphone was refused or failed; nothing was recorded and the footer says so.
VoiceNotesdata-slot="voice-notes"
Header, thread and composer.
resampleLevelsdata-slot="—"
Level arrays to 40 stems.
components/ui/notchset/voice-notes.tsx
This component is included with Pro.
Try the live preview above. Get Pro to install the source.
pnpm dlx shadcn@latest add @notchset-pro/voice-notesNeeds your registry key. Your components.json style picks the Base UI or Radix build: radix-*, new-york and default get Radix, base-* gets Base UI.
The CLI adds the styles to the CSS file named in components.json (tailwind.css). Check that it points at your global stylesheet, that the project uses Tailwind CSS v4, and that the file is imported in your root layout. Installed by hand: paste styles.css into that file.
Give your coding assistant the Markdown guide instead of screenshots.
https://notchset.dev/api/mcp (setup)v1.0.0 · 2026-10-02
First release
Pro is in early access.