AI Integration Quick Reference
AI Integration Quick Reference
Overview
CometChatFileBubble renders a file attachment. It is self-extracting: pass the SDK message and the bubble derives the file’s URL, name, size, and extension (plus any caption) itself, so it works standalone. It shows a type icon, the file name and size, and a download control.
Live Preview — interact with the file bubble.Open in Storybook ↗
Usage
Props
message
The file message. The bubble extracts the attachment (url, name, size, extension) and caption from it. Required.alignment
Override incoming/outgoing alignment. Defaults to sender-vs-logged-in-user.textFormatters
Text formatters applied to the extracted caption.className
Additional CSS class applied to the root element.CSS Selectors
Next Steps
File Plugin
Plugin behavior, context menu, and conversation preview
Audio Bubble
Render audio attachments
Message Bubble
The wrapper that hosts bubble content
Theming
Customize colors, fonts, and spacing