App UI kits › Confab › Voice note

Voice note

Hold the mic and the waveform draws as you speak; slide left and the note is pulled into the bin, slide up to lock.

Voice note is a screen from Confab, an app ui kit with 11 screens: A chat app where a voice note is pulled into the bin when you slide away, and every bubble moves like a real one. Price: $5 for the whole pack.

Built with: live waveform, slide to bin, lock to record, transcript.

Code: React and Next.js (TypeScript), Vue 3, plain HTML/CSS/JS, Tailwind CSS v4 and Motion (motion.dev). No npm packages needed. Keyboard accessible, with a reduced-motion version, in dark and light.

Voice note props

PropTypeDefaultDescription
darkboolean
autoplayboolean
photosCfPhotos
level() => numberOptional live input level 0–1 (for example from an AnalyserNode). Simulated speech when omitted.
onSend(seconds: number, levels: number[]) => void

Methods on the ref

Use it in React

import ConfabVoice from './ConfabVoice';

<ConfabVoice />

The Vue, HTML, Next.js, Tailwind and Motion versions take the same options.

More in Confab

Good for: Chat app UI.