Skip to content
ProLifetime access for $199, paid once, every future release included
Truffle UI

Audio Postcard

ProNew

Play and scrub an audio message across a waveform with elapsed time and sender attribution.

Installation

pnpm dlx shadcn@latest add @viewport/audio-postcard

First time? Add the @viewport registry to components.json. Setup takes one minute.

Usage

The code behind the preview above comes with Truffle Pro.

Props

PropTypeDefault
src*string

Audio URL playable by the browser.

—
sender*string

Name shown above the message.

—
caption*string

Description of the recording.

—
peaks*number[]

Normalized amplitude samples from the recording.

—

Accessibility

  • Playback uses a native audio element. A labeled seek slider supports keyboard input and playback errors are announced.