Skip to content
Browse docs and components

Voice Note

voice-note

One entry in a list of voice notes: when it was recorded, what was said and the recording to check it against. While transcription runs it holds its place with a waveform and placeholder lines.

Responsive

Install

$npxshadcnadd@forme/voice-note

Adds the component, its registry dependencies, and the token stylesheet you import once.

API reference

Read from the source, so it is the API of the file you install. A prop marked * is required.

VoiceNote

One entry in a list of voice notes: when it was recorded, what was said and the recording to check it against. While the speech model is still working the transcript is a waveform and two placeholder lines, which the text replaces in place — the card does not change size by much, so a list of them does not jump.

PropTypeDefaultDescription
createdAt*Date—
srcstring | Blob—The recording. Without it the card is text only.
transcriptReactNode—What was said. Leave it out while the recording is still being transcribed.
transcribingbooleanfalseShows the transcribing state instead of the transcript.
titleReactNode"Voice note"
onDelete() => void—Shows a delete button. Ask for confirmation in here if the note matters.
classNamestring—