AI Integration Quick Reference
AI Integration Quick Reference
Where It Fits
CometChatReactions renders below message bubbles to show emoji reactions. It is typically used inside CometChatMessageBubble as the footer view. The parent (usually CometChatMessageList) owns the reaction add/remove SDK calls and passes the updated message down.
Live Preview — interact with the reactions component.Open in Storybook ↗
Minimal Render
.cometchat-reactions
Sub-Components
CometChatReactions is a compound component with these sub-components:
Custom Layout
Compose sub-components to customize the layout:Standalone List
Use the List sub-component independently:Actions and Events
Callback Props
onReactionClick
Called when a reaction chip is clicked. The parent (MessageList) handles the SDK call for adding/removing the reaction.onReactorClick
Called when a user in the reaction list is clicked. Useful for removing own reactions.onError
Called when an error occurs during reactor detail fetching.CSS Architecture
The component uses CSS custom properties defined in@cometchat/chat-uikit-react/css-variables.css.
Key Selectors
Example: Custom chip styling
App.css