Skip to main content
The CometChatReactionInfo component displays a tooltip showing the names of users who reacted with a specific emoji on a message. It fetches reaction details from the CometChat SDK and formats the display with “You” for the logged-in user and an “and X others” suffix when there are more reactors than the fetch limit.

Overview

The Reaction Info component provides a concise reactor summary:
  • User Names: Fetches and displays names of users who reacted with the specified emoji
  • Current User Highlighting: Replaces the logged-in user’s name with localized “You” text, placed first
  • Overflow Text: Shows “and X others” when total reactions exceed the fetched count
  • Loading States: Manages loading, loaded, and error states during data fetching
  • Auto-Refresh: Re-fetches reaction info when the message or reaction input changes
Live Preview — default reaction info preview. Open in Storybook ↗

Basic Usage

Simple Reaction Info Tooltip

Used with Reactions Component

The Reaction Info component is typically rendered inside a popover that appears when hovering over a reaction pill:

Properties

Events

This component does not emit any events.

Customization

CSS Variables

The Reaction Info component uses BEM-style CSS classes:

Theming

The component adapts to light and dark themes through CSS variables:

Accessibility

Screen Reader Support

  • The tooltip content is accessible to screen readers via the parent popover’s ARIA attributes
  • User names are presented in a readable format with “You” for the current user

Keyboard Navigation

The Reaction Info component is a passive tooltip — keyboard interaction is handled by the parent reaction pill or popover that triggers it.