Skip to main content

Where It Fits

CometChatMessageBubble is the layout shell for every message in the message list. The plugin system’s renderBubble() produces the inner content (text, image, video, etc.), and the bubble wraps it with shared chrome.
Live Preview — interact with the message bubble component.Open in Storybook ↗

Shared Chrome Elements

GlobalConfig Integration

hideReceipts reads from GlobalConfigContext when the prop is not explicitly set:

Props

message

The SDK message object. Required.

alignment

Bubble alignment: 'left' (incoming), 'right' (outgoing), 'center' (action).

contentView

The inner content from the plugin’s renderBubble(). Required.

group

Group context. Enables avatar and sender name display.

hideAvatar / hideSenderName / hideTimestamp / hideThreadView

Per-bubble display controls. Not in GlobalConfig.

hideReceipts

Hide receipt indicators. Reads from GlobalConfig if not set.

showError

Show error receipt icon instead of normal receipts.

disableInteraction

Disable hover options and keyboard interactions.

CSS Selectors