AI Integration Quick Reference
AI Integration Quick Reference
Overview
CometChatCollaborativeWhiteboardBubble renders a collaborative whiteboard card — a banner image, a title, a subtitle, and an “Open Whiteboard” button. It is self-extracting: pass the SDK message and the bubble reads the board URL from the message’s extension metadata (@injected.extensions.whiteboard.board_url), so it works standalone. Clicking the button opens the whiteboard (by default in a new window).
Requires the Collaborative Whiteboard extension enabled in the CometChat Dashboard. Whiteboard messages (
extension_whiteboard) — and the injected board_url this bubble reads — are only produced once the extension is turned on for your app. Without it the composer cannot create whiteboards and this bubble never renders. See the Collaborative Whiteboard guide to enable it, and the Plugins overview for how the UI Kit auto-routes whiteboard messages to this bubble.Live Preview — interact with the collaborative whiteboard bubble.Open in Storybook ↗
Usage
Props
message
The collaborative-whiteboard message. The bubble extracts the URL from its metadata. Required.alignment
Override incoming/outgoing alignment. Defaults to sender-vs-logged-in-user.onButtonClick
Click handler for the action button. Receives the board URL. Defaults towindow.open.
disabled
Disable the action button (e.g. for a thread header preview).className
Additional CSS class applied to the root element.CSS Selectors
Next Steps
Collaborative Whiteboard Plugin
Plugin behavior, context menu, and conversation preview
Enable Collaborative Whiteboard (Dashboard)
Turn on the extension that produces these messages
Collaborative Document Bubble
Render collaborative document messages
Message Bubble
The wrapper that hosts bubble content
Theming
Customize colors, fonts, and spacing