The MessageBubble styling API allows developers to customize the appearance of incoming and outgoing message bubbles globally or at the component level. This includes various message types such as text, image, video, audio, file, and document bubbles.There are two primary classes for styling message bubbles:
CometChat Incoming Message Bubble Style
CometChat Outgoing Message Bubble Style
Both classes provide properties for customizing background color, border, corner radius, and specific styles for individual message types.
Text bubbles display plain text messages, which are the most common message type.The following code snippet shows how customize the text message bubble:
The Link Preview Bubble is designed to display a preview of links shared in messages. It enriches the messaging experience by showing details such as the page title, description, and an image from the linked content, making links more engaging and informative.The following code snippet shows how customize the Link preview message bubble:
Action bubbles provide a customizable interface for displaying a variety of actions, such as group actions, within a chat.The following code snippet shows how customize the action message bubble:
Delete bubbles displays messages that have been deleted by the sender. These indicate the message removal within the chat interface.The following code snippet shows how customize the delete message bubble: