ebnsina

Voice Note

Component 12

About

A compact chat-bubble audio player for voice messages, with a play/pause button, a seekable progress slider and an elapsed/duration time readout.

Built with React and Tailwind. Copy the prompt and paste it into Claude Code, Cursor or Lovable: your agent adds Voice Note to your project and fits it to your theme.

Code

How Voice Note is used: the demo's code. The component's own source comes with a free account.

Usage.tsx

import VoiceNote from "@/components/ui/voice-note";

export default function VoiceNoteDemo() {
  return (
    <div className="flex w-full min-h-[200px] items-center justify-center p-8">
      <VoiceNote
        src="https://cdn.21st.dev/assets/mirror/79/79d62cb6599f1e2f50f7b7a1f71384c6a6eade69ec16cc6c2efecdb1d91f3878.mp3"
        label="Voice message from Maryam"
      />
    </div>
  );
}

Dependencies

More by ebnsina

View all
  • Countdown Timer

    Countdown Timer

    20
  • Video Player

    Video Player

    15
  • Alarm Clock

    Alarm Clock

    14
  • Split Button

    Split Button

    11
  • Sortable List

    Sortable List

    9
  • Stopwatch

    Stopwatch

    5
  • Code Block

    Code Block

    4
  • Shaka Video

    Shaka Video

    1