CometChatReactions
component provides a visual representation of emoji reactions associated with a specific message. It enables users to quickly identify which emojis were used to react to the message and by whom.
reactionClick
is triggered when you click on each Reaction in the footer view of message bubble. You can override this action using the following code snippet.
reactionClick
action.
Component
. You can filter the list based on your specific criteria, allowing for a more customized. Filters can be applied using RequestBuilders
of Chat SDK.
The Reactions
component does not have any exposed filters.
Component
. By using event you can extend existing functionality. Being global events, they can be applied in Multiple Locations and are capable of being Added or Removed.
The Reactions
component does not produce any events.
reactionsStyle
object to the Reactions
component.
Example
In this example, we are employing the reactionsStyle
.
Property | Description | Code |
---|---|---|
border | Used to set border | border?: string, |
borderRadius | Used to set border radius | borderRadius?: string; |
background | Used to set background colour | background?: string; |
height | Used to set height | height?: string; |
width | Used to set width | width?: string; |
barPadding | used to set the bar padding | barPadding?: string; |
reactionBoxShadow | used to set the reactions box-shadow | reactionBoxShadow?: string; |
reactionBorderRadius | used to set the reactions border radius | reactionBorderRadius?: string; |
reactionBorder | used to set the reactions border | reactionBorder?: string; |
reactionBackground | used to set the reactions background | reactionBackground?: string; |
activeReactionBorder | used to set the active reactions border | activeReactionBorder?: string; |
activeReactionBackground | used to set the active reactions background | activeReactionBackground?: string; |
reactionEmojiFont | used to set the reaction emoji text font | reactionEmojiFont?: string; |
reactionCountTextFont | used to set the reaction count text font | reactionCountTextFont?: string; |
reactionCountTextColor | used to set the reaction count text color | reactionCountTextColor?: string; |
activeReactionCountTextFont | used to set the active reaction text font | activeReactionCountTextFont?: string; |
activeReactionCountTextColor | used to set the active reaction text color | activeReactionCountTextColor?: string; |
baseReactionBackground | used to set the base reaction background | baseReactionBackground?: string; |
Property | Description | Code |
---|---|---|
alignment report | Used to set the allignment of the reactions. it can be either left, right or center | alignment={MessageBubbleAlignment.right} |
hoverDebounceTime report | Used to sets the delay before displaying the tooltip reaction information when hovering over reactions | hoverDebounceTime={100} |
reactionInfoConfiguration
object.
reactionInfoConfiguration
indeed provides access to all the Action, Filters, Styles, Functionality, and Advanced properties of the Reaction Info component.
In the above example, we are styling a few properties of the Reaction Info component using reactionInfoConfiguration
.
reactionListConfiguration
object.
reactionListConfiguration
indeed provides access to all the Action, Filters, Styles, Functionality, and Advanced properties of the Reaction List component.
In the above example, we are styling a few properties of the Reaction List component using reactionListConfiguration
.