Skip to main content

Documentation Index

Fetch the complete documentation index at: https://cometchat-22654f5b-react-uikit-v7.mintlify.app/llms.txt

Use this file to discover all available pages before exploring further.

FieldValue
Plugin IDimage
Package@cometchat/chat-uikit-react
Message Typesimage
Message Categoriesmessage
Included by DefaultYes
Bubble ComponentCometChatImageBubble
Conversation PreviewPhoto
Context MenuReact, Reply, Reply in Thread, Info, Delete, Report, Mark Unread, Message Privately

Overview

The Image plugin handles messages of type image in category message. It renders images in a responsive grid layout with optional captions. Clicking an image opens a fullscreen gallery viewer.

Bubble Rendering

  • Single image — full-width image with rounded corners
  • Multiple images — responsive grid (2 images side-by-side, 3+ in a masonry-style layout)
  • Caption — rendered below the image grid, formatted with text formatters (mentions, URLs, markdown)
  • Pending state — shows a placeholder while the image uploads
Clicking any image opens the CometChatFullScreenViewer gallery with swipe navigation between images.

Context Menu Options

OptionConditionAction
ReactAlwaysOpens emoji picker
ReplyAlwaysSets reply-to in composer
Reply in ThreadNot in threadOpens thread view
InfoSender onlyOpens message info panel
DeleteSender onlyShows delete confirmation
ReportReceiver onlyOpens flag/report dialog
Mark UnreadReceiver onlyMarks message as unread
Message PrivatelyReceiver, group onlyOpens 1:1 chat with sender

Conversation Preview

Returns: Photo (localized via conversation_subtitle_image key)

CSS Selectors

TargetSelector
Bubble root.cometchat-image-bubble
Image grid.cometchat-image-bubble__grid
Single image.cometchat-image-bubble__image
Caption.cometchat-image-bubble__caption