Skip to main content

Overview

CometChatStickerBubble renders a sticker. It is self-extracting: pass the SDK custom message and the bubble extracts the sticker image URL and name from its metadata, so it works standalone.
Live Preview — interact with the sticker bubble.Open in Storybook ↗

Usage


Props

message

The sticker custom message. The bubble extracts the image URL and name from its metadata. Required.
TypeCometChat.CustomMessage
RequiredYes

alignment

Override incoming/outgoing alignment. Defaults to sender-vs-logged-in-user.
Type"left" | "right"
Defaultderived

className

Additional CSS class applied to the root element.
Typestring
Defaultundefined

CSS Selectors

TargetSelector
Root.cometchat-sticker-bubble
Incoming / outgoing.cometchat-sticker-bubble--incoming / .cometchat-sticker-bubble--outgoing
Sticker image.cometchat-sticker-bubble__image

Next Steps

Stickers Plugin

Plugin behavior, keyboard, and conversation preview

Poll Bubble

Render poll messages

Message Bubble

The wrapper that hosts bubble content

Theming

Customize colors, fonts, and spacing