Skip to main content

Overview

CometChatAudioBubble renders an audio attachment with inline playback. It is self-extracting: pass the SDK message and the bubble derives the audio attachment(s) and caption itself, reading alignment and localization from hooks, so it works standalone. It shows play/pause controls, a seekable progress bar, elapsed/total time, and a download control.
Live Preview — interact with the audio bubble.Open in Storybook ↗

Usage


Props

message

The audio message. The bubble extracts attachments and caption from it. Required.

alignment

Override incoming/outgoing alignment. Defaults to sender-vs-logged-in-user.

textFormatters

Text formatters applied to the caption (mentions, URLs).

className

Additional CSS class applied to the root element.

CSS Selectors


Next Steps

Audio Plugin

Plugin behavior, context menu, and conversation preview

File Bubble

Render generic file attachments

Message Bubble

The wrapper that hosts bubble content

Theming

Customize colors, fonts, and spacing