A two-sided thread of voice notes with dot waveforms you can seek, speed chips and transcripts, and a composer that records level (or audio) with a live waveform and sends with a settle.
pnpm dlx shadcn@latest add @beautiful-ui-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.
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.
captureAudio / maxSeconds–
boolean / numberAlso record audio (MediaRecorder); cap 30s.
components/ui/notchset/voice-notes.tsx
This component is included with Pro.
Try the live preview above. Get Pro to install the source.