-
-
-
+export function MessageListDemo() {
+ const [chatUser, setChatUser] = React.useState(null);
+ React.useEffect(() => {
+ CometChat.getUser("uid").then((user) => {
+ setChatUser(user);
+ });
+ }, []);
+
+ return chatUser ? (
+
+
- );
+ ) : null;
}
```
@@ -1583,3 +1618,23 @@ export function MessageListDemo() {
***
+
+
+---
+
+## Next Steps
+
+
+
+ Add message input and sending capabilities
+
+
+ Display conversation header with user/group info
+
+
+ Customize message bubble appearance and behavior
+
+
+ Enable threaded message conversations
+
+
diff --git a/ui-kit/react/message-template.mdx b/ui-kit/react/message-template.mdx
index 7659b728..ac43cc2b 100644
--- a/ui-kit/react/message-template.mdx
+++ b/ui-kit/react/message-template.mdx
@@ -1,7 +1,39 @@
---
title: "Message Template"
+description: "A blueprint for defining and customizing message bubble structure, appearance, and behavior in the chat interface."
---
+{/* TL;DR for Agents and Quick Reference */}
+
+**Quick Reference for AI Agents & Developers**
+
+```tsx
+import { CometChatUIKit, CometChatMessageTemplate, CometChatUIKitConstants } from "@cometchat/chat-uikit-react";
+
+// Get all existing templates
+const templates = CometChatUIKit.getDataSource().getAllMessageTemplates();
+
+// Customize a specific template (e.g., text messages)
+templates.forEach((template) => {
+ if (template.type === CometChatUIKitConstants.MessageTypes.text) {
+ template.headerView = (message) => ;
+ template.contentView = (message) => ;
+ template.footerView = (message) => ;
+ }
+});
+
+// Create a custom message template
+const customTemplate = new CometChatMessageTemplate({
+ type: "customType",
+ category: CometChatUIKitConstants.MessageCategory.custom,
+ contentView: (message) => ,
+});
+
+// Apply templates to MessageList
+
+```
+
+
## Overview
MessageTemplate provides you with the capability to define and customize both the structure and the behavior of the Message Bubble. It acts as a schema or design blueprint for the creation of a variety of Message Bubble components, allowing you to manage the appearance and interactions of Message Bubble within your application effectively and consistently.
@@ -1933,3 +1965,22 @@ export { CustomMessageTemplate };
+
+---
+
+## Next Steps
+
+
+
+ Display messages using custom templates
+
+
+ Add message input and sending capabilities
+
+
+ Create custom text formatting rules
+
+
+ Customize colors, fonts, and styling
+
+
diff --git a/ui-kit/react/methods.mdx b/ui-kit/react/methods.mdx
index 0be19fef..c783062e 100644
--- a/ui-kit/react/methods.mdx
+++ b/ui-kit/react/methods.mdx
@@ -1,7 +1,37 @@
---
title: "Methods"
+description: "Reference documentation for CometChatUIKit methods including init, login, logout, and message sending."
---
+{/* TL;DR for Agents and Quick Reference */}
+
+**Quick Reference for AI Agents & Developers**
+
+```javascript
+import { CometChatUIKit, UIKitSettingsBuilder } from "@cometchat/chat-uikit-react";
+
+// Init
+const UIKitSettings = new UIKitSettingsBuilder()
+ .setAppId("APP_ID")
+ .setRegion("REGION")
+ .setAuthKey("AUTH_KEY")
+ .build();
+CometChatUIKit.init(UIKitSettings);
+
+// Login
+CometChatUIKit.login("UID");
+
+// Login with Auth Token (production)
+CometChatUIKit.loginWithAuthToken("AUTH_TOKEN");
+
+// Logout
+CometChatUIKit.logout();
+
+// Get logged in user
+CometChatUIKit.getLoggedinUser();
+```
+
+
## Overview
The UI Kit's core function is to extend the [Chat SDK](/sdk/javascript/overview), essentially translating the raw data and functionality provided by the underlying methods into visually appealing and easy-to-use UI components.
@@ -10,6 +40,14 @@ To effectively manage and synchronize the UI elements and data across all compon
The CometChat UI Kit has thoughtfully encapsulated the critical [Chat SDK](/sdk/javascript/overview) methods within its wrapper to efficiently manage internal eventing. This layer of abstraction simplifies interaction with the underlying CometChat SDK, making it more user-friendly for developers.
+
+You must call `CometChatUIKit.init(UIKitSettings)` before rendering any UI Kit components or calling any SDK methods. Initialization must complete before login.
+
+
+
+**Auth Key** is for development/testing only. In production, generate **Auth Tokens** on your server using the REST API and pass them to the client. Never expose Auth Keys in production client code.
+
+
## Methods
You can access the methods using the `CometChatUIKit` class. This class provides access to all the public methods exposed by the CometChat UI Kit.
@@ -578,3 +616,23 @@ CometChatUIKit.sendCustomMessage(customMessage)
+
+
+---
+
+## Next Steps
+
+
+
+ Subscribe to real-time chat events
+
+
+ Explore all available UI components
+
+
+ Learn about messaging capabilities
+
+
+ Customize colors, fonts, and styling
+
+
diff --git a/ui-kit/react/next-conversation.mdx b/ui-kit/react/next-conversation.mdx
index 1d8800f6..2a88a54a 100644
--- a/ui-kit/react/next-conversation.mdx
+++ b/ui-kit/react/next-conversation.mdx
@@ -1,8 +1,42 @@
---
title: "Building A Conversation List + Message View"
sidebarTitle: "Conversation List + Message View"
+description: "Build a two-panel chat interface with conversation list sidebar and message view for Next.js applications."
---
+{/* TL;DR for Agents and Quick Reference */}
+
+**Quick Reference for AI Agents & Developers**
+
+```tsx
+import {
+ CometChatConversations,
+ CometChatMessageHeader,
+ CometChatMessageList,
+ CometChatMessageComposer
+} from "@cometchat/chat-uikit-react";
+
+// Two-panel layout: Sidebar + Message View
+
+ {/* Sidebar */}
+
setActiveChat(conversation)}
+ />
+
+ {/* Message View */}
+
+
+
+
+
+
+```
+
+- **Next.js Integration** → [Getting Started](/ui-kit/react/next-js-integration)
+- **One-to-One Chat** → [One-to-One Chat](/ui-kit/react/next-one-to-one-chat)
+- **Tab-Based Chat** → [Tab-Based Chat](/ui-kit/react/next-tab-based-chat)
+
+
The **Conversation List + Message View** layout offers a seamless **two-panel chat interface**, commonly used in modern messaging applications like **WhatsApp Web, Slack, and Microsoft Teams**.
This design enables users to switch between conversations effortlessly while keeping the chat window open, ensuring a **smooth, real-time messaging experience**.
diff --git a/ui-kit/react/next-js-integration.mdx b/ui-kit/react/next-js-integration.mdx
index 0d4c40aa..8d1a8d59 100644
--- a/ui-kit/react/next-js-integration.mdx
+++ b/ui-kit/react/next-js-integration.mdx
@@ -1,10 +1,48 @@
---
title: "Getting Started With CometChat React UI Kit For Next.js"
sidebarTitle: "Integration"
+description: "Step-by-step guide to integrate CometChat UI Kit into your Next.js application with SSR-compatible chat components."
---
+{/* TL;DR for Agents and Quick Reference */}
+
+**Quick Reference for AI Agents & Developers**
+
+```bash
+# Install
+npm install @cometchat/chat-uikit-react
+```
+
+```tsx
+// Client-side only - use 'use client' directive or dynamic import
+import { CometChatUIKit, UIKitSettingsBuilder } from "@cometchat/chat-uikit-react";
+
+// Initialize
+const UIKitSettings = new UIKitSettingsBuilder()
+ .setAppId("APP_ID")
+ .setRegion("REGION")
+ .setAuthKey("AUTH_KEY")
+ .build();
+
+CometChatUIKit.init(UIKitSettings);
+
+// Login
+CometChatUIKit.login("UID");
+
+// Render components (client-side only)
+import { CometChatConversations, CometChatMessageList, CometChatMessageComposer } from "@cometchat/chat-uikit-react";
+```
+
+- **Next.js Conversation** → [Conversation List + Message](/ui-kit/react/next-conversation)
+- **All Components** → [Components Overview](/ui-kit/react/components-overview)
+
+
The **CometChat UI Kit for React** streamlines the integration of in-app chat functionality by providing a **comprehensive set of prebuilt UI components**. It offers seamless **theming options**, including **light and dark modes**, customizable fonts, colors, and extensive styling capabilities.
+
+**Server-Side Rendering (SSR):** CometChat UI Kit requires browser APIs (`window`, `WebSocket`, `document`). For Next.js, ensure components render only on the client side using `'use client'` directive or dynamic imports with `ssr: false`.
+
+
With built-in support for **one-to-one and group conversations**, developers can efficiently enable chat features within their applications. Follow this guide to **quickly integrate chat functionality** using the CometChat React UI Kit.
{/*
diff --git a/ui-kit/react/next-one-to-one-chat.mdx b/ui-kit/react/next-one-to-one-chat.mdx
index 6b9ca33f..cc4a4410 100644
--- a/ui-kit/react/next-one-to-one-chat.mdx
+++ b/ui-kit/react/next-one-to-one-chat.mdx
@@ -1,8 +1,31 @@
---
title: "Building A One To One/Group Chat Experience"
sidebarTitle: "One To One/Group Chat"
+description: "Build a focused direct messaging interface for one-to-one or group chat in Next.js applications."
---
+{/* TL;DR for Agents and Quick Reference */}
+
+**Quick Reference for AI Agents & Developers**
+
+```tsx
+import { CometChatMessageHeader, CometChatMessageList, CometChatMessageComposer } from "@cometchat/chat-uikit-react";
+import { CometChat } from "@cometchat/chat-sdk-javascript";
+
+// Fetch user for one-to-one chat
+const user = await CometChat.getUser("cometchat-uid-1");
+
+// Render chat components (client-side only)
+
+
+
+```
+
+- **Next.js Integration** → [Getting Started](/ui-kit/react/next-js-integration)
+- **Conversation List + Message** → [Conversation View](/ui-kit/react/next-conversation)
+- **Tab-Based Chat** → [Tab-Based Chat](/ui-kit/react/next-tab-based-chat)
+
+
The **One-to-One Chat** feature provides a streamlined **direct messaging interface**, making it ideal for **support chats, dating apps, and private messaging platforms**. This setup eliminates distractions by focusing solely on a **dedicated chat window**.
[

](https://link.cometchat.com/next-one-on-one)
diff --git a/ui-kit/react/next-tab-based-chat.mdx b/ui-kit/react/next-tab-based-chat.mdx
index 91f61a65..f9a9d32c 100644
--- a/ui-kit/react/next-tab-based-chat.mdx
+++ b/ui-kit/react/next-tab-based-chat.mdx
@@ -1,8 +1,47 @@
---
title: "Building A Messaging UI With Tabs, Sidebar, And Message View"
sidebarTitle: "Tab Based Chat Experience"
+description: "Build a tab-based messaging UI with navigation between Chats, Calls, Users, and Groups in Next.js applications."
---
+{/* TL;DR for Agents and Quick Reference */}
+
+**Quick Reference for AI Agents & Developers**
+
+```tsx
+import {
+ CometChatConversations,
+ CometChatCallLogs,
+ CometChatUsers,
+ CometChatGroups,
+ CometChatMessageHeader,
+ CometChatMessageList,
+ CometChatMessageComposer
+} from "@cometchat/chat-uikit-react";
+
+// Tab-based layout with sidebar and message view
+
+ {/* Tab Navigation */}
+
+
+ {/* Sidebar based on active tab */}
+ {activeTab === "chats" && }
+ {activeTab === "calls" && }
+ {activeTab === "users" && }
+ {activeTab === "groups" && }
+
+ {/* Message View */}
+
+
+
+
+```
+
+- **Next.js Integration** → [Getting Started](/ui-kit/react/next-js-integration)
+- **Conversation List + Message** → [Conversation View](/ui-kit/react/next-conversation)
+- **One-to-One Chat** → [One-to-One Chat](/ui-kit/react/next-one-to-one-chat)
+
+
This guide walks you through creating a **tab-based messaging UI** using **React** and **CometChat UIKit**. The UI will include different sections for **Chats, Calls, Users, and Groups**, allowing seamless navigation.
[

](https://link.cometchat.com/next-tabs-sidebar-message)
diff --git a/ui-kit/react/outgoing-call.mdx b/ui-kit/react/outgoing-call.mdx
index 89413847..8feccc55 100644
--- a/ui-kit/react/outgoing-call.mdx
+++ b/ui-kit/react/outgoing-call.mdx
@@ -1,9 +1,39 @@
---
title: "Outgoing Call"
+description: "A component that displays outgoing voice or video calls with options to cancel and view call status."
---
+{/* TL;DR for Agents and Quick Reference */}
+
+**Quick Reference for AI Agents & Developers**
+
+```tsx
+import { CometChatOutgoingCall, CometChatUIKitConstants } from "@cometchat/chat-uikit-react";
+import { CometChat } from "@cometchat/chat-sdk-javascript";
+
+// Initiate a call
+const callObject = new CometChat.Call(
+ "uid",
+ CometChatUIKitConstants.MessageTypes.audio,
+ CometChatUIKitConstants.MessageReceiverType.user
+);
+const call = await CometChat.initiateCall(callObject);
+
+// Render outgoing call component
+ handleCancel()}
+ disableSoundForCalls={false}
+/>
+```
+
+
## Overview
+
+**Available via:** [UI Kits](https://www.cometchat.com/docs/ui-kit/react/overview) | [SDK](https://www.cometchat.com/docs/sdk/javascript/overview)
+
+
The outgoing call component is a visual representation of a user-initiated call, whether it's a voice or video call. It serves as an interface for managing outgoing calls, providing users with essential options to control the call experience. This component typically includes information about the call recipient, call controls for canceling the call, and feedback on the call status, such as indicating when the call is in progress.
@@ -1026,3 +1056,22 @@ export default OutgoingCallDemo;
+
+---
+
+## Next Steps
+
+
+
+ Handle incoming voice and video calls with accept/reject options.
+
+
+ Display call history with details like duration and participants.
+
+
+ Add voice and video call buttons to initiate calls.
+
+
+ Customize colors, fonts, and styling to match your brand.
+
+
diff --git a/ui-kit/react/overview.mdx b/ui-kit/react/overview.mdx
index 42b82d98..edceb87b 100644
--- a/ui-kit/react/overview.mdx
+++ b/ui-kit/react/overview.mdx
@@ -1,10 +1,61 @@
---
title: "CometChat UI Kit For React"
sidebarTitle: "Overview"
+description: "A powerful React UI Kit with prebuilt, customizable chat components for rapid integration of messaging and calling features."
---
+{/* TL;DR for Agents and Quick Reference */}
+
+**Quick Reference for AI Agents & Developers**
+
+```bash
+# Install
+npm install @cometchat/chat-uikit-react
+```
+
+```tsx
+import { CometChatUIKit, UIKitSettingsBuilder } from "@cometchat/chat-uikit-react";
+
+// Initialize
+const UIKitSettings = new UIKitSettingsBuilder()
+ .setAppId("APP_ID")
+ .setRegion("REGION")
+ .setAuthKey("AUTH_KEY")
+ .build();
+
+CometChatUIKit.init(UIKitSettings);
+
+// Login
+CometChatUIKit.login("UID");
+
+// Key Components
+import { CometChatConversations } from "@cometchat/chat-uikit-react";
+ console.log(conversation)} />
+
+import { CometChatMessageList, CometChatMessageComposer } from "@cometchat/chat-uikit-react";
+
+
+```
+
+- **React.js** → [React.js Integration](/ui-kit/react/react-js-integration)
+- **Next.js** → [Next.js Integration](/ui-kit/react/next-js-integration)
+- **All Components** → [Components Overview](/ui-kit/react/components-overview)
+
+
The **CometChat UI Kit** for React is a powerful solution designed to seamlessly integrate chat functionality into applications. It provides a robust set of **prebuilt UI components** that are **modular, customizable, and highly scalable**, allowing developers to accelerate their development process with minimal effort.
+
+You must call `CometChatUIKit.init(UIKitSettings)` before rendering any UI Kit components or calling any SDK methods. Initialization must complete before login.
+
+
+
+**Auth Key** is for development/testing only. In production, generate **Auth Tokens** on your server using the REST API and pass them to the client. Never expose Auth Keys in production client code.
+
+
+
+**Server-Side Rendering (SSR):** CometChat UI Kit requires browser APIs (`window`, `WebSocket`, `document`). For Next.js or other SSR frameworks, ensure components render only on the client side. See the [Next.js Integration](/ui-kit/react/next-js-integration) guide.
+
+
***
## **Why Choose CometChat UI Kit?**
@@ -156,21 +207,24 @@ A collection of individual components—like conversation lists, message lists,
***
-## **Next Steps for Developers**
-
-1. **Learn the Basics** – [Key Concepts](/fundamentals/key-concepts).
-
-2. **Pick a Framework** – React.js or Next.js or React Router or Astro.
-
-3. **Follow the Setup Guide** –
-
- * **UI Components** – [React.js](/ui-kit/react/react-js-integration) or [Next.js](/ui-kit/react/next-js-integration) or [React Router](/ui-kit/react/react-router-integration) or [Astro](/ui-kit/react/astro-integration).
-
-4. **Customize UI** – Adjust [styles, themes](/ui-kit/react/theme), and [components](/ui-kit/react/components-overview).
-
-5. **Test & Deploy** – Run tests and launch your chat app.
+## **Next Steps**
+
+
+
+ Get started with React.js setup and configuration
+
+
+ Integrate with Next.js and SSR support
+
+
+ Explore all available UI components
+
+
+ Customize colors, fonts, and styling
+
+
-***
+---
## **Helpful Resources**
@@ -212,3 +266,22 @@ If you need assistance, check out:
* [Developer Community](http://community.cometchat.com/)
* [Support Portal](https://help.cometchat.com/hc/en-us/requests/new)
+
+---
+
+## Next Steps
+
+
+
+ Step-by-step guide to integrate CometChat in your React app
+
+
+ Explore all available UI components and their capabilities
+
+
+ Learn about messaging, conversations, and user management
+
+
+ Customize colors, fonts, and styling to match your brand
+
+
diff --git a/ui-kit/react/property-changes.mdx b/ui-kit/react/property-changes.mdx
index 3358b3d1..6325c67b 100644
--- a/ui-kit/react/property-changes.mdx
+++ b/ui-kit/react/property-changes.mdx
@@ -1,7 +1,33 @@
---
title: "Property Changes"
+description: "Reference guide for property changes, new additions, and removed properties when upgrading to React UI Kit v6."
---
+{/* TL;DR for Agents and Quick Reference */}
+
+**Quick Reference for AI Agents & Developers**
+
+Key changes in v6:
+- **Date/Time formatting**: `datePattern` replaced with `CalendarObject`-based props
+- **Conversations**: Use `lastMessageDateTimeFormat` instead of `datePattern`
+- **Message List**: Use `separatorDateTimeFormat`, `stickyDateTimeFormat`, `messageSentAtDateTimeFormat`
+- **Call Logs**: Use `callInitiatedDateTimeFormat` instead of `datePattern`
+- **Localization**: `setLocale` → `setCurrentLanguage`, `localize` → `getLocalizedString`
+
+```tsx
+import { CalendarObject } from "@cometchat/chat-uikit-react";
+
+// New date formatting approach
+
+```
+
+
## Conversations
### New Properties
@@ -92,3 +118,22 @@ title: "Property Changes"
| setDefaultLanguage | Sets the default lannguage if no language is passed in init method. |
| isRTL | Returns true if the active language is rtl otherwise return false. |
| getDir | Returns `rtl` or `ltr` based on the active language. |
+
+---
+
+## Next Steps
+
+
+
+ Complete migration guide with step-by-step instructions for upgrading.
+
+
+ Configure language settings and translations in your app.
+
+
+ Customize colors, fonts, and styling to match your brand.
+
+
+ Explore all available UI components and their properties.
+
+
diff --git a/ui-kit/react/react-conversation.mdx b/ui-kit/react/react-conversation.mdx
index 03ab256f..ad11afdf 100644
--- a/ui-kit/react/react-conversation.mdx
+++ b/ui-kit/react/react-conversation.mdx
@@ -1,8 +1,31 @@
---
title: "Building A Conversation List + Message View"
sidebarTitle: "Conversation List + Message View"
+description: "Build a two-panel chat interface with conversation list sidebar and message view, similar to WhatsApp Web, Slack, and Microsoft Teams."
---
+{/* TL;DR for Agents and Quick Reference */}
+
+**Quick Reference for AI Agents & Developers**
+
+```tsx
+import { CometChatConversations, CometChatMessageHeader, CometChatMessageList, CometChatMessageComposer } from "@cometchat/chat-uikit-react";
+
+// Sidebar - Conversation List
+ setActiveChat(conversation)} />
+
+// Message View
+
+
+
+```
+
+Key components:
+- **CometChatConversations** → [Conversations](/ui-kit/react/conversations)
+- **CometChatMessageList** → [Message List](/ui-kit/react/message-list)
+- **CometChatMessageComposer** → [Message Composer](/ui-kit/react/message-composer)
+
+
The **Conversation List + Message View** layout offers a seamless **two-panel chat interface**, commonly used in modern messaging applications like **WhatsApp Web, Slack, and Microsoft Teams**.
This design enables users to switch between conversations effortlessly while keeping the chat window open, ensuring a **smooth, real-time messaging experience**.
@@ -388,8 +411,19 @@ npm start
## **Next Steps**
-### **Enhance the User Experience**
-
-* **[Advanced Customizations](/ui-kit/react/theme)** – Personalize the chat UI to align with your brand.
+
+
+ Build a focused direct messaging experience
+
+
+ Create a multi-tab navigation interface
+
+
+ Customize colors, fonts, and styling
+
+
+ Explore all available UI components
+
+
-***
+---
diff --git a/ui-kit/react/react-js-integration.mdx b/ui-kit/react/react-js-integration.mdx
index 55d43393..b8518cd6 100644
--- a/ui-kit/react/react-js-integration.mdx
+++ b/ui-kit/react/react-js-integration.mdx
@@ -1,8 +1,40 @@
---
title: "Getting Started With CometChat React UI Kit"
sidebarTitle: "Integration"
+description: "Step-by-step guide to integrate CometChat React UI Kit with prebuilt components, theming options, and support for one-to-one and group conversations."
---
+{/* TL;DR for Agents and Quick Reference */}
+
+**Quick Reference for AI Agents & Developers**
+
+```bash
+# Install
+npm install @cometchat/chat-uikit-react
+```
+
+```tsx
+import { CometChatUIKit, UIKitSettingsBuilder } from "@cometchat/chat-uikit-react";
+import "@cometchat/chat-uikit-react/css-variables.css";
+
+// 1. Initialize
+const UIKitSettings = new UIKitSettingsBuilder()
+ .setAppId("APP_ID")
+ .setRegion("REGION")
+ .setAuthKey("AUTH_KEY")
+ .subscribePresenceForAllUsers()
+ .build();
+
+await CometChatUIKit.init(UIKitSettings);
+
+// 2. Login
+await CometChatUIKit.login("cometchat-uid-1");
+
+// 3. Render component
+ console.log(conversation)} />
+```
+
+
The **CometChat UI Kit for React** streamlines the integration of in-app chat functionality by providing a **comprehensive set of prebuilt UI components**. It offers seamless **theming options**, including **light and dark modes**, customizable fonts, colors, and extensive styling capabilities.
With built-in support for **one-to-one and group conversations**, developers can efficiently enable chat features within their applications. Follow this guide to **quickly integrate chat functionality** using the CometChat React UI Kit.
@@ -170,6 +202,14 @@ For secure authentication, use the [`Auth Token`](/ui-kit/react/methods#login-us
+
+**Auth Key** is for development/testing only. In production, generate **Auth Tokens** on your server using the REST API and pass them to the client. Never expose Auth Keys in production client code.
+
+
+
+You must call `CometChatUIKit.init(UIKitSettings)` before rendering any UI Kit components or calling any SDK methods. Initialization must complete before login.
+
+
```ts
@@ -495,9 +535,19 @@ import { CometChatFrameProvider } from "@cometchat/ui-kit";
Now that you’ve selected your **chat experience**, proceed to the **integration guide**:
-* **[Integrate Conversation List + Message](/ui-kit/react/react-conversation)**
-* **[Integrate One-to-One Chat](/ui-kit/react/react-one-to-one-chat)**
-* **[Integrate Tab-Based Chat](/ui-kit/react/react-tab-based-chat)**
-* **[Advanced Customizations](/ui-kit/react/theme)**
+
+
+ Build a two-panel layout with sidebar and message view
+
+
+ Create a focused direct messaging experience
+
+
+ Build a multi-tab navigation interface
+
+
+ Customize themes, colors, and styling
+
+
-***
+---
diff --git a/ui-kit/react/react-one-to-one-chat.mdx b/ui-kit/react/react-one-to-one-chat.mdx
index bdb37e0f..ee8fc6f6 100644
--- a/ui-kit/react/react-one-to-one-chat.mdx
+++ b/ui-kit/react/react-one-to-one-chat.mdx
@@ -1,8 +1,35 @@
---
title: "Building A One To One/Group Chat Experience"
sidebarTitle: "One To One/Group Chat"
+description: "Build a focused direct messaging interface for one-to-one or group chat, ideal for support chats, dating apps, and private messaging platforms."
---
+{/* TL;DR for Agents and Quick Reference */}
+
+**Quick Reference for AI Agents & Developers**
+
+```tsx
+import { CometChatMessageHeader, CometChatMessageList, CometChatMessageComposer } from "@cometchat/chat-uikit-react";
+import { CometChat } from "@cometchat/chat-sdk-javascript";
+
+// Fetch user for one-to-one chat
+const user = await CometChat.getUser("cometchat-uid-1");
+
+// Or fetch group for group chat
+const group = await CometChat.getGroup("GUID");
+
+// Render chat components
+
+
+
+```
+
+Key components:
+- **CometChatMessageHeader** → [Message Header](/ui-kit/react/message-header)
+- **CometChatMessageList** → [Message List](/ui-kit/react/message-list)
+- **CometChatMessageComposer** → [Message Composer](/ui-kit/react/message-composer)
+
+
The **One-to-One Chat** feature provides a streamlined **direct messaging interface**, making it ideal for **support chats, dating apps, and private messaging platforms**. This setup eliminates distractions by focusing solely on a **dedicated chat window**.
[
](https://link.cometchat.com/react-one-on-one)
@@ -204,8 +231,19 @@ npm start
## **Next Steps**
-### **Enhance the User Experience**
+
+
+ Build a two-panel layout with sidebar and message view
+
+
+ Create a multi-tab navigation interface
+
+
+ Customize colors, fonts, and styling
+
+
+ Learn about message list customization
+
+
-* **[Advanced Customizations](/ui-kit/react/theme)** – Personalize the chat UI to align with your brand.
-
-***
+---
diff --git a/ui-kit/react/react-router-conversation.mdx b/ui-kit/react/react-router-conversation.mdx
index 8b90fa5f..a9c2ebad 100644
--- a/ui-kit/react/react-router-conversation.mdx
+++ b/ui-kit/react/react-router-conversation.mdx
@@ -1,8 +1,42 @@
---
title: "Building A Conversation List + Message View"
sidebarTitle: "Conversation List + Message View"
+description: "Build a two-panel chat interface with conversation list sidebar and message view for React Router applications."
---
+{/* TL;DR for Agents and Quick Reference */}
+
+**Quick Reference for AI Agents & Developers**
+
+```tsx
+import {
+ CometChatConversations,
+ CometChatMessageHeader,
+ CometChatMessageList,
+ CometChatMessageComposer
+} from "@cometchat/chat-uikit-react";
+
+// Two-panel layout: Sidebar + Message View
+
+ {/* Sidebar */}
+
setActiveChat(conversation)}
+ />
+
+ {/* Message View */}
+
+
+
+
+
+
+```
+
+- **React Router Integration** → [Getting Started](/ui-kit/react/react-router-integration)
+- **One-to-One Chat** → [One-to-One Chat](/ui-kit/react/react-router-one-to-one-chat)
+- **Tab-Based Chat** → [Tab-Based Chat](/ui-kit/react/react-router-tab-based-chat)
+
+
The **Conversation List + Message View** layout offers a seamless **two-panel chat interface**, commonly used in modern messaging applications like **WhatsApp Web, Slack, and Microsoft Teams**.
This design enables users to switch between conversations effortlessly while keeping the chat window open, ensuring a **smooth, real-time messaging experience**.
@@ -465,10 +499,19 @@ a {
***
-## **Next Steps**
-
-### **Enhance the User Experience**
-
-* **[Advanced Customizations](/ui-kit/react/theme)** – Personalize the chat UI to align with your brand.
-
-***
+## Next Steps
+
+
+
+ Build a focused direct messaging experience without a sidebar.
+
+
+ Create a multi-feature navigation with chats, calls, and settings.
+
+
+ Personalize the chat UI to align with your brand.
+
+
+ Explore all available UI components and their properties.
+
+
diff --git a/ui-kit/react/react-router-integration.mdx b/ui-kit/react/react-router-integration.mdx
index af243243..f5eb250a 100644
--- a/ui-kit/react/react-router-integration.mdx
+++ b/ui-kit/react/react-router-integration.mdx
@@ -1,8 +1,44 @@
---
title: "Getting Started With CometChat React UI Kit For React Router"
sidebarTitle: "Integration"
+description: "Step-by-step guide to integrate CometChat React UI Kit with React Router for building chat applications."
---
+{/* TL;DR for Agents and Quick Reference */}
+
+**Quick Reference for AI Agents & Developers**
+
+```bash
+# Install
+npm install @cometchat/chat-uikit-react
+```
+
+```tsx
+import { CometChatUIKit, UIKitSettingsBuilder } from "@cometchat/chat-uikit-react";
+import "@cometchat/chat-uikit-react/css-variables.css";
+
+// Initialize
+const UIKitSettings = new UIKitSettingsBuilder()
+ .setAppId("APP_ID")
+ .setRegion("REGION")
+ .setAuthKey("AUTH_KEY")
+ .subscribePresenceForAllUsers()
+ .build();
+
+await CometChatUIKit.init(UIKitSettings);
+
+// Login
+await CometChatUIKit.login("cometchat-uid-1");
+
+// Render (disable SSR for CometChat components)
+ console.log(conversation)} />
+```
+
+- **Conversation List + Message** → [Conversation View](/ui-kit/react/react-router-conversation)
+- **One-to-One Chat** → [One-to-One Chat](/ui-kit/react/react-router-one-to-one-chat)
+- **Tab-Based Chat** → [Tab-Based Chat](/ui-kit/react/react-router-tab-based-chat)
+
+
The **CometChat UI Kit for React** streamlines the integration of in-app chat functionality by providing a **comprehensive set of prebuilt UI components**. It offers seamless **theming options**, including **light and dark modes**, customizable fonts, colors, and extensive styling capabilities.
With built-in support for **one-to-one and group conversations**, developers can efficiently enable chat features within their applications. Follow this guide to **quickly integrate chat functionality** using the CometChat React UI Kit.
diff --git a/ui-kit/react/react-router-one-to-one-chat.mdx b/ui-kit/react/react-router-one-to-one-chat.mdx
index adfd5664..5433bd0c 100644
--- a/ui-kit/react/react-router-one-to-one-chat.mdx
+++ b/ui-kit/react/react-router-one-to-one-chat.mdx
@@ -1,8 +1,33 @@
---
title: "Building A One To One/Group Chat Experience"
sidebarTitle: "One To One/Group Chat"
+description: "Build a focused direct messaging interface for support chats, dating apps, and private messaging in React Router applications."
---
+{/* TL;DR for Agents and Quick Reference */}
+
+**Quick Reference for AI Agents & Developers**
+
+```tsx
+import {
+ CometChatMessageHeader,
+ CometChatMessageList,
+ CometChatMessageComposer
+} from "@cometchat/chat-uikit-react";
+
+// One-to-One Chat Layout
+
+
+
+
+
+```
+
+- **React Router Integration** → [Getting Started](/ui-kit/react/react-router-integration)
+- **Conversation List + Message** → [Conversation View](/ui-kit/react/react-router-conversation)
+- **Tab-Based Chat** → [Tab-Based Chat](/ui-kit/react/react-router-tab-based-chat)
+
+
The **One-to-One Chat** feature provides a streamlined **direct messaging interface**, making it ideal for **support chats, dating apps, and private messaging platforms**. This setup eliminates distractions by focusing solely on a **dedicated chat window**.
***
@@ -335,10 +360,19 @@ a {
***
-## **Next Steps**
-
-### **Enhance the User Experience**
-
-* **[Advanced Customizations](/ui-kit/react/theme)** – Personalize the chat UI to align with your brand.
-
-***
+## Next Steps
+
+
+
+ Build a two-panel layout with sidebar and message view.
+
+
+ Create a multi-feature navigation with chats, calls, and settings.
+
+
+ Personalize the chat UI to align with your brand.
+
+
+ Explore all available UI components and their properties.
+
+
diff --git a/ui-kit/react/react-router-tab-based-chat.mdx b/ui-kit/react/react-router-tab-based-chat.mdx
index aae298cf..13e7c102 100644
--- a/ui-kit/react/react-router-tab-based-chat.mdx
+++ b/ui-kit/react/react-router-tab-based-chat.mdx
@@ -1,8 +1,28 @@
---
title: "Building A Messaging UI With Tabs, Sidebar, And Message View"
sidebarTitle: "Tab Based Chat Experience"
+description: "Build a tab-based messaging UI with sections for Chats, Calls, Users, and Groups using React Router and CometChat UIKit."
---
+{/* TL;DR for Agents and Quick Reference */}
+
+**Quick Reference for AI Agents & Developers**
+
+```tsx
+import { CometChatConversations, CometChatCallLogs, CometChatUsers, CometChatGroups } from "@cometchat/chat-uikit-react";
+
+// Tab-based navigation components
+ handleSelect(conversation)} /> // Chats tab
+ handleSelect(call)} /> // Calls tab
+ handleSelect(user)} /> // Users tab
+ handleSelect(group)} /> // Groups tab
+```
+
+- **React Router Integration** → [Getting Started](/ui-kit/react/react-router-integration)
+- **Conversation List + Message** → [Conversation View](/ui-kit/react/react-router-conversation)
+- **One-to-One Chat** → [One-to-One Chat](/ui-kit/react/react-router-one-to-one-chat)
+
+
This guide walks you through creating a **tab-based messaging UI** using **React** and **CometChat UIKit**. The UI will include different sections for **Chats, Calls, Users, and Groups**, allowing seamless navigation.
***
@@ -705,10 +725,19 @@ a {
***
-## **Next Steps**
-
-### **Enhance the User Experience**
-
-* **[Advanced Customizations](/ui-kit/react/theme)** – Personalize the chat UI to align with your brand.
-
-***
+## Next Steps
+
+
+
+ Build a two-panel layout with sidebar and message view.
+
+
+ Create a focused direct messaging experience.
+
+
+ Personalize the chat UI to align with your brand.
+
+
+ Learn about call logs customization.
+
+
diff --git a/ui-kit/react/react-tab-based-chat.mdx b/ui-kit/react/react-tab-based-chat.mdx
index ae4a0ce2..c63e0573 100644
--- a/ui-kit/react/react-tab-based-chat.mdx
+++ b/ui-kit/react/react-tab-based-chat.mdx
@@ -1,8 +1,30 @@
---
title: "Building A Messaging UI With Tabs, Sidebar, And Message View"
sidebarTitle: "Tab Based Chat Experience"
+description: "Build a tab-based messaging UI with sections for Chats, Calls, Users, and Groups using React and CometChat UIKit."
---
+{/* TL;DR for Agents and Quick Reference */}
+
+**Quick Reference for AI Agents & Developers**
+
+```tsx
+import { CometChatConversations, CometChatCallLogs, CometChatUsers, CometChatGroups } from "@cometchat/chat-uikit-react";
+
+// Tab-based navigation components
+ handleSelect(conversation)} /> // Chats tab
+ handleSelect(call)} /> // Calls tab
+ handleSelect(user)} /> // Users tab
+ handleSelect(group)} /> // Groups tab
+```
+
+Key components:
+- **CometChatConversations** → [Conversations](/ui-kit/react/conversations)
+- **CometChatCallLogs** → [Call Logs](/ui-kit/react/call-logs)
+- **CometChatUsers** → [Users](/ui-kit/react/users)
+- **CometChatGroups** → [Groups](/ui-kit/react/groups)
+
+
This guide walks you through creating a **tab-based messaging UI** using **React** and **CometChat UIKit**. The UI will include different sections for **Chats, Calls, Users, and Groups**, allowing seamless navigation.
[
](https://link.cometchat.com/react-tabs-sidebar-message)
@@ -479,8 +501,19 @@ npm start
## **Next Steps**
-### **Enhance the User Experience**
-
-* **[Advanced Customizations](/ui-kit/react/theme)** – Personalize the chat UI to align with your brand.
+
+
+ Build a two-panel layout with sidebar and message view
+
+
+ Create a focused direct messaging experience
+
+
+ Customize colors, fonts, and styling
+
+
+ Learn about call logs customization
+
+
-***
+---
diff --git a/ui-kit/react/search.mdx b/ui-kit/react/search.mdx
index 02879766..11cd54a9 100644
--- a/ui-kit/react/search.mdx
+++ b/ui-kit/react/search.mdx
@@ -1,9 +1,33 @@
---
title: "Search"
+description: "A powerful search component that allows users to search across conversations and messages in real time with filters and customization options."
---
+{/* TL;DR for Agents and Quick Reference */}
+
+**Quick Reference for AI Agents & Developers**
+
+```tsx
+import { CometChatSearch } from "@cometchat/chat-uikit-react";
+
+// Minimal usage
+
+
+// With common props
+ openConversation(conversation)}
+ onMessageClicked={(message) => goToMessage(message)}
+ searchFilters={[CometChatSearchFilter.Messages, CometChatSearchFilter.Photos]}
+/>
+```
+
+
## Overview
+
+**Available via:** [UI Kits](https://www.cometchat.com/docs/ui-kit/react/overview)
+
+
The `CometChatSearch` component is a powerful and customizable search interface that allows users to search across conversations and messages in real time. It supports a wide variety of filters, scopes, and customization options. `CometChatSearch` helps users find messages, conversations, media, and more through an intuitive and filterable search experience. It can be embedded in multiple contexts — as part of the conversation list, message header, or as a full-screen search experience.
## Usage
@@ -799,3 +823,22 @@ function getDateFormat() {
#### Text Formatters
Assigns the list of text formatters. If the provided list is not null, it sets the list. Otherwise, it assigns the default text formatters retrieved from the data source.
+
+---
+
+## Next Steps
+
+
+
+ Display and manage conversation lists with search.
+
+
+ Display messages with real-time updates.
+
+
+ Compose and send messages with attachments.
+
+
+ Customize colors, fonts, and styling.
+
+
diff --git a/ui-kit/react/shortcut-formatter-guide.mdx b/ui-kit/react/shortcut-formatter-guide.mdx
index b6c5d381..33487620 100644
--- a/ui-kit/react/shortcut-formatter-guide.mdx
+++ b/ui-kit/react/shortcut-formatter-guide.mdx
@@ -1,7 +1,32 @@
---
title: "ShortCut Formatter"
+description: "A guide to implementing shortcut extensions in CometChat using the ShortCutFormatter class for handling message shortcuts."
---
+{/* TL;DR for Agents and Quick Reference */}
+
+**Quick Reference for AI Agents & Developers**
+
+```tsx
+import { CometChatTextFormatter } from "@cometchat/chat-uikit-react";
+import { CometChatMessageComposer } from "@cometchat/chat-uikit-react";
+
+// Create custom shortcut formatter
+class ShortcutFormatter extends CometChatTextFormatter {
+ constructor() {
+ super();
+ this.setTrackingCharacter("!");
+ }
+}
+
+// Use in Message Composer
+
+```
+
+- **Custom Text Formatter** → [CometChatTextFormatter](/ui-kit/react/custom-text-formatter-guide)
+- **Message Composer** → [CometChatMessageComposer](/ui-kit/react/message-composer)
+
+
## Overview
The `ShortCutFormatter` class extends the [CometChatTextFormatter](/ui-kit/react/custom-text-formatter-guide) class to provide a mechanism for handling shortcuts within messages. This guide will walk you through the process of using `ShortCutFormatter` to implement shortcut extensions in your CometChat application.
@@ -270,4 +295,21 @@ import { CometChatMessageComposer } from "@cometchat/chat-uikit-react";
-***
+---
+
+## Next Steps
+
+
+
+ Learn the base class for creating custom formatters.
+
+
+ Implement @mentions in your chat application.
+
+
+ Auto-detect and format URLs as clickable links.
+
+
+ Integrate formatters with the message composer.
+
+
diff --git a/ui-kit/react/sound-manager.mdx b/ui-kit/react/sound-manager.mdx
index d0b5f0c2..b90e7de7 100644
--- a/ui-kit/react/sound-manager.mdx
+++ b/ui-kit/react/sound-manager.mdx
@@ -1,7 +1,26 @@
---
title: "Sound Manager"
+description: "A helper class for managing and playing audio sounds for incoming and outgoing calls in CometChat UI Kit."
---
+{/* TL;DR for Agents and Quick Reference */}
+
+**Quick Reference for AI Agents & Developers**
+
+```tsx
+import { CometChatSoundManager, Sound } from "@cometchat/chat-uikit-react";
+
+// Play default sound for incoming call
+CometChatSoundManager.play(Sound.incomingCall);
+
+// Play custom sound
+CometChatSoundManager.play(Sound.incomingCall, "path/to/custom-sound.mp3");
+
+// Pause currently playing sound
+CometChatSoundManager.pause();
+```
+
+
## Overview
The SoundManager is a helper class responsible for managing and playing various types of audio in the CometChat UI Kit. This includes sound events for incoming and outgoing calls.
@@ -60,3 +79,22 @@ CometChatSoundManager.pause();
By using the CometChatSoundManager, you can enhance the user experience in your chat application by integrating audible cues for chat interactions.
+
+---
+
+## Next Steps
+
+
+
+ Customize colors, fonts, and styling.
+
+
+ Configure language settings and translations.
+
+
+ Handle incoming voice and video calls.
+
+
+ Manage outgoing call UI and sounds.
+
+
diff --git a/ui-kit/react/theme.mdx b/ui-kit/react/theme.mdx
index 98f16428..72640cae 100644
--- a/ui-kit/react/theme.mdx
+++ b/ui-kit/react/theme.mdx
@@ -1,8 +1,30 @@
---
title: "Customizing UI With Theming"
sidebarTitle: "Overview"
+description: "Customize the look and feel of CometChat UI Kit using CSS variables for colors, fonts, and styling."
---
+{/* TL;DR for Agents and Quick Reference */}
+
+**Quick Reference for AI Agents & Developers**
+
+```css
+/* Import base stylesheet */
+@import url("@cometchat/chat-uikit-react/css-variables.css");
+
+/* Override CSS variables */
+:root {
+ --cometchat-font-family: "Inter", sans-serif;
+ --cometchat-primary-color: #6852D6;
+ --cometchat-background-color-01: #FFFFFF;
+ --cometchat-text-color-primary: #141414;
+}
+```
+
+- **Color Resources** → [Color Variables](/ui-kit/react/theme/color-resources)
+- **Message Bubble Styling** → [Bubble Customization](/ui-kit/react/theme/message-bubble-styling)
+
+
Theming allows you to define the **look and feel** of your app by adjusting **colors, fonts, and other styles**. Using **CSS variables**, you can create a consistent and **on-brand** chat experience.
***
@@ -224,3 +246,23 @@ Access the Figma UI Kit for a fully integrated color palette and seamless custom
+
+
+---
+
+## Next Steps
+
+
+
+ Complete list of CSS color variables
+
+
+ Customize message bubble appearance
+
+
+ Customize text and date formats
+
+
+ Customize notification sounds
+
+
diff --git a/ui-kit/react/theme/color-resources.mdx b/ui-kit/react/theme/color-resources.mdx
index d52c5779..d018c45e 100644
--- a/ui-kit/react/theme/color-resources.mdx
+++ b/ui-kit/react/theme/color-resources.mdx
@@ -1,26 +1,49 @@
---
title: "Color Resources"
+description: "Complete reference of CSS color variables available in CometChat UI Kit for light and dark mode theming."
---
+{/* TL;DR for Agents and Quick Reference */}
+
+**Quick Reference for AI Agents & Developers**
+
+```css
+/* Primary brand color */
+--cometchat-primary-color: #6852d6;
+
+/* Extended primary palette (light mode) */
+--cometchat-extended-primary-color-50: #f9f8fd; /* Lightest */
+--cometchat-extended-primary-color-500: #aa9ee8; /* Mid */
+--cometchat-extended-primary-color-900: #5d49be; /* Darkest */
+```
+
+- Override these in `.cometchat {}` or `:root {}` to rebrand the entire UI
+- **Theming Overview** → [Theming](/ui-kit/react/theme)
+- **Message Bubble Styling** → [Bubble Customization](/ui-kit/react/theme/message-bubble-styling)
+- **Source on GitHub** → [css-variables.css](https://github.com/cometchat/cometchat-uikit-react/blob/v6/src/styles/css-variables.css#L198-L419)
+
+
## Introduction
-The **Chat UI Kit** features a carefully crafted **color palette** designed for a **consistent and visually appealing** user experience. It follows the **Block, Element, Modifier (BEM)** methodology, ensuring **scalable styling** and easy **customization** by overriding the Kit’s CSS variables.
+The Chat UI Kit features a carefully crafted color palette designed for a consistent and visually appealing user experience. It follows the Block, Element, Modifier (BEM) methodology, ensuring scalable styling and easy customization by overriding the Kit's CSS variables.
***
## Color Palette
-The **primary color** defines key actions, branding, and UI elements, while the **extended primary palette** provides variations for supporting components.
+The primary color defines key actions, branding, and UI elements, while the extended primary palette provides variations for supporting components.
-### **Primary Color**
+### Primary Color
-#### **Light Mode**
+#### Light Mode

-```python
+
+
+```css
--cometchat-primary-color: #6852d6;
--cometchat-extended-primary-color-50: #f9f8fd;
--cometchat-extended-primary-color-100: #edeafa;
@@ -33,16 +56,20 @@ The **primary color** defines key actions, branding, and UI elements, while the
--cometchat-extended-primary-color-800: #7965db;
--cometchat-extended-primary-color-900: #5d49be;
```
+
+
***
-#### **Dark Mode**
+#### Dark Mode

-```python
+
+
+```css
--cometchat-primary-color: #6852d6;
--cometchat-extended-primary-color-50: #15102b;
--cometchat-extended-primary-color-100: #1d173c;
@@ -55,17 +82,54 @@ The **primary color** defines key actions, branding, and UI elements, while the
--cometchat-extended-primary-color-800: #5745b4;
--cometchat-extended-primary-color-900: #7460d9;
```
+
+
-### **Extended Primary Colors**
+### Extended Primary Colors
-#### **Light Mode**
+#### Light Mode

-#### **Dark Mode**
+#### Dark Mode

+
+***
+
+
+
+- Always override CSS variables within the `.cometchat` scope to avoid leaking styles to other parts of your app.
+- When customizing for dark mode, use `@media (prefers-color-scheme: dark)` or the `[data-theme="dark"]` attribute to scope your overrides.
+- Use the extended primary palette shades for hover states, backgrounds, and subtle accents rather than creating new colors.
+- Test color contrast ratios to ensure text remains readable against custom background colors.
+
+
+- **Colors not changing?** Make sure you've imported the base stylesheet first: `@import url("@cometchat/chat-uikit-react/css-variables.css");`
+- **Dark mode colors showing in light mode?** Check that your dark mode overrides are properly scoped inside a media query or data-theme selector.
+- **Inconsistent colors across components?** Use the extended primary palette variables instead of hardcoded hex values to maintain consistency.
+
+
+
+---
+
+## Next Steps
+
+
+
+ Global theming with CSS variables
+
+
+ Customize message bubble appearance
+
+
+ Customize text and date formats
+
+
+ Customize notification sounds
+
+
diff --git a/ui-kit/react/theme/message-bubble-styling.mdx b/ui-kit/react/theme/message-bubble-styling.mdx
index d95f2a1c..0a4a42fb 100644
--- a/ui-kit/react/theme/message-bubble-styling.mdx
+++ b/ui-kit/react/theme/message-bubble-styling.mdx
@@ -1,14 +1,34 @@
---
title: "Message Bubble Styling"
+description: "Customize the appearance of incoming and outgoing message bubbles in CometChat UI Kit using CSS variables and class overrides."
---
-## Introduction
+{/* TL;DR for Agents and Quick Reference */}
+
+**Quick Reference for AI Agents & Developers**
-We offer customizable message bubble styling to enhance user experience and match your app’s design. With distinct classes for incoming and outgoing messages, you can easily define colors, borders, and other styles. Each message type, from text to multimedia, has predefined classes for default styling, and developers can further customize using CSS.
+```css
+/* Outgoing bubble color */
+.cometchat .cometchat-message-bubble-outgoing .cometchat-message-bubble__body {
+ --cometchat-primary-color: #f76808;
+}
+
+/* Incoming bubble color */
+.cometchat .cometchat-message-bubble-incoming .cometchat-message-bubble__body {
+ --cometchat-neutral-color-300: #f76808;
+}
+```
+
+- **CSS Variable Classes**: Target `.cometchat-message-bubble-outgoing` or `.cometchat-message-bubble-incoming` with `.cometchat-message-bubble__body`
+- **Message type modifiers**: `.cometchat-message-bubble__text-message`, `.cometchat-message-bubble__image-message`, `.cometchat-message-bubble__video-message`, etc.
+- **Parent theme page** → [Theming Overview](/ui-kit/react/theme)
+
+
+We offer customizable message bubble styling to enhance user experience and match your app's design. With distinct classes for incoming and outgoing messages, you can easily define colors, borders, and other styles. Each message type, from text to multimedia, has predefined classes for default styling, and developers can further customize using CSS.
## Incoming & Outgoing Messages
-Incoming and outgoing messages have different styling by default, allowing users to visually separate their own messages from others’. Here, we show both the default view and examples of customizations for these message bubbles.
+Incoming and outgoing messages have different styling by default, allowing users to visually separate their own messages from others'. Here, we show both the default view and examples of customizations for these message bubbles.
Shown below is the default chat interface.
@@ -30,12 +50,16 @@ The customized chat interface is displayed below.
Use the following code to achieve the customization shown above.
-```css app.css
+
+
+```css
.cometchat .cometchat-message-bubble-outgoing .cometchat-message-bubble__body {
--cometchat-primary-color: #f76808;
--cometchat-extended-primary-color-900: #fbaa75;
}
```
+
+
***
@@ -49,11 +73,15 @@ The customized chat interface is displayed below.
Use the following code to achieve the customization shown above.
-```css app.css
+
+
+```css
.cometchat .cometchat-message-bubble-incoming .cometchat-message-bubble__body {
--cometchat-neutral-color-300: #f76808;
}
```
+
+
***
@@ -67,19 +95,23 @@ The customized chat interface is displayed below.
Use the following code to achieve the customization shown above.
-```css app.css
+
+
+```css
.cometchat .cometchat-message-bubble .cometchat-message-bubble__body {
--cometchat-neutral-color-300: #f76808;
--cometchat-primary-color: #f76808;
--cometchat-extended-primary-color-900: #fbaa75;
}
```
+
+
***
## Message Types
-CometChat UI Kit includes classes for various message types. Below are examples of default & customised views for each message type, along with the relevant CSS code snippets so that you can quickly up to the mark with CSS customization.
+CometChat UI Kit includes classes for various message types. Below are examples of default & customised views for each message type, along with the relevant CSS code snippets so that you can quickly get up to speed with CSS customization.
***
@@ -99,8 +131,9 @@ The customized chat interface is displayed below.
Use the following code to achieve the customization shown above.
-```css App.css
-
+
+
+```css
/* Outgoing Text Message Bubble */
.cometchat
.cometchat-message-bubble-outgoing
@@ -115,6 +148,8 @@ Use the following code to achieve the customization shown above.
--cometchat-neutral-color-300: #feede1;
}
```
+
+
***
@@ -134,8 +169,9 @@ The customized chat interface is displayed below.
Use the following code to achieve the customization shown above.
-```css App.css
-
+
+
+```css
/* Outgoing Image Message Bubble */
.cometchat
.cometchat-message-bubble-outgoing
@@ -150,6 +186,8 @@ Use the following code to achieve the customization shown above.
--cometchat-neutral-color-300: #feede1;
}
```
+
+
***
@@ -169,8 +207,9 @@ The customized chat interface is displayed below.
Use the following code to achieve the customization shown above.
-```css App.css
-
+
+
+```css
/* Outgoing Video Message Bubble */
.cometchat
.cometchat-message-bubble-outgoing
@@ -185,6 +224,8 @@ Use the following code to achieve the customization shown above.
--cometchat-neutral-color-300: #feede1;
}
```
+
+
***
@@ -204,8 +245,9 @@ The customized chat interface is displayed below.
Use the following code to achieve the customization shown above.
-```css App.css
-
+
+
+```css
/* Outgoing Audio Message Bubble */
.cometchat
.cometchat-message-bubble-outgoing
@@ -221,6 +263,8 @@ Use the following code to achieve the customization shown above.
--cometchat-neutral-color-300: #feede1;
}
```
+
+
***
@@ -240,8 +284,9 @@ The customized chat interface is displayed below.
Use the following code to achieve the customization shown above.
-```css App.css
-
+
+
+```css
/* Outgoing File Message Bubble */
.cometchat
.cometchat-message-bubble-outgoing
@@ -257,6 +302,8 @@ Use the following code to achieve the customization shown above.
--cometchat-neutral-color-300: #feede1;
}
```
+
+
***
@@ -276,8 +323,9 @@ The customized chat interface is displayed below.
Use the following code to achieve the customization shown above.
-```css App.css
-
+
+
+```css
/* Outgoing Delete Bubble */
.cometchat
.cometchat-message-bubble-outgoing
@@ -292,6 +340,8 @@ Use the following code to achieve the customization shown above.
--cometchat-neutral-color-300: #feede1;
}
```
+
+
***
@@ -311,8 +361,9 @@ The customized chat interface is displayed below.
Use the following code to achieve the customization shown above.
-```css App.css
-
+
+
+```css
.cometchat .cometchat-message-bubble__body .cometchat-action-bubble {
--cometchat-primary-color: #f76808;
background-color: #feede1;
@@ -321,6 +372,8 @@ Use the following code to achieve the customization shown above.
--cometchat-border-color-default: #f76808;
}
```
+
+
***
@@ -340,8 +393,9 @@ The customized chat interface is displayed below.
Use the following code to achieve the customization shown above.
-```css App.css
-
+
+
+```css
/* Outgoing Direct Call Message Bubble */
.cometchat
.cometchat-message-bubble-outgoing
@@ -358,6 +412,8 @@ Use the following code to achieve the customization shown above.
--cometchat-neutral-color-300: #feede1;
}
```
+
+
***
@@ -377,8 +433,9 @@ The customized chat interface is displayed below.
Use the following code to achieve the customization shown above.
-```css App.css
-
+
+
+```css
.cometchat .cometchat-message-bubble__body .cometchat-action-bubble {
--cometchat-primary-color: #f76808;
background-color: #feede1;
@@ -387,6 +444,8 @@ Use the following code to achieve the customization shown above.
--cometchat-border-color-default: #f76808;
}
```
+
+
***
@@ -408,8 +467,9 @@ The customized chat interface is displayed below.
Use the following code to achieve the customization shown above.
-```css App.css
-
+
+
+```css
/* Outgoing Collaborative Whiteboard Bubble */
.cometchat
.cometchat-message-bubble-outgoing
@@ -426,6 +486,8 @@ Use the following code to achieve the customization shown above.
--cometchat-neutral-color-300: #feede1;
}
```
+
+
***
@@ -445,8 +507,9 @@ The customized chat interface is displayed below.
Use the following code to achieve the customization shown above.
-```css App.css
-
+
+
+```css
/* Outgoing Collaborative Document Bubble */
.cometchat
.cometchat-message-bubble-outgoing
@@ -463,6 +526,8 @@ Use the following code to achieve the customization shown above.
--cometchat-neutral-color-300: #feede1;
}
```
+
+
***
@@ -482,8 +547,9 @@ The customized chat interface is displayed below.
Use the following code to achieve the customization shown above.
-```css App.css
-
+
+
+```css
/* Outgoing Poll Message Bubble */
.cometchat
.cometchat-message-bubble-outgoing
@@ -500,6 +566,8 @@ Use the following code to achieve the customization shown above.
--cometchat-neutral-color-300: #feede1;
}
```
+
+
***
@@ -519,8 +587,9 @@ The customized chat interface is displayed below.
Use the following code to achieve the customization shown above.
-```css App.css
-
+
+
+```css
/* Outgoing Sticker Bubble */
.cometchat
.cometchat-message-bubble-outgoing
@@ -535,6 +604,8 @@ Use the following code to achieve the customization shown above.
--cometchat-neutral-color-300: #feede1;
}
```
+
+
***
@@ -554,8 +625,9 @@ The customized chat interface is displayed below.
Use the following code to achieve the customization shown above.
-```css App.css
-
+
+
+```css
/* Outgoing Link Preview Bubble */
.cometchat
.cometchat-message-bubble-outgoing
@@ -572,5 +644,42 @@ Use the following code to achieve the customization shown above.
--cometchat-neutral-color-300: #feede1;
}
```
+
+
***
+
+
+
+- Use CSS variables instead of direct property overrides for consistent theming across light and dark modes.
+- Target specific message types using their BEM modifier classes (e.g., `.cometchat-message-bubble__text-message`) rather than broad selectors.
+- Keep outgoing and incoming bubble styles visually distinct so users can easily differentiate their own messages.
+- Test customizations in both light and dark themes to ensure readability and contrast.
+- Use the `.cometchat` parent selector to scope your overrides and avoid conflicts with other styles.
+
+
+- **Styles not applying?** Ensure your CSS is loaded after the CometChat stylesheet. Check selector specificity — your overrides must match or exceed the specificity of the default styles.
+- **Only one direction styled?** Make sure you're targeting both `.cometchat-message-bubble-outgoing` and `.cometchat-message-bubble-incoming` if you want to style both.
+- **Dark mode looks wrong?** Wrap dark mode overrides in `@media (prefers-color-scheme: dark)` or use the `[data-theme="dark"]` attribute selector.
+- **Extension bubbles not styled?** Extension message types (polls, whiteboard, etc.) use their own modifier classes — check you're using the correct class name.
+
+
+
+---
+
+## Next Steps
+
+
+
+ Global theming with CSS variables
+
+
+ Complete list of CSS color variables
+
+
+ Customize text and date formats
+
+
+ Customize message rendering logic
+
+
diff --git a/ui-kit/react/thread-header.mdx b/ui-kit/react/thread-header.mdx
index 9f4cf327..56282a4d 100644
--- a/ui-kit/react/thread-header.mdx
+++ b/ui-kit/react/thread-header.mdx
@@ -1,9 +1,33 @@
---
title: "Thread Header"
+description: "A component that displays the parent message and reply count for threaded conversations."
---
+{/* TL;DR for Agents and Quick Reference */}
+
+**Quick Reference for AI Agents & Developers**
+
+```tsx
+import { CometChatThreadHeader } from "@cometchat/chat-uikit-react";
+import { CometChat } from "@cometchat/chat-sdk-javascript";
+
+// Get parent message
+const message = await CometChat.getMessageDetails("messageId");
+
+// Render thread header
+ handleClose()}
+/>
+```
+
+
## Overview
+
+**Available via:** [UI Kits](https://www.cometchat.com/docs/ui-kit/react/overview) | [SDK](https://www.cometchat.com/docs/sdk/javascript/overview)
+
+
CometChatThreadHeader is a Component that displays the parent message & number of replies of thread.
@@ -349,4 +373,21 @@ function getDateFormat() {
-***
+---
+
+## Next Steps
+
+
+
+ Display messages with threading support.
+
+
+ Display conversation header with user/group info.
+
+
+ Complete guide to implementing threaded messages.
+
+
+ Customize colors, fonts, and styling.
+
+
diff --git a/ui-kit/react/upgrading-from-v5.mdx b/ui-kit/react/upgrading-from-v5.mdx
index c8308a80..c25b19ae 100644
--- a/ui-kit/react/upgrading-from-v5.mdx
+++ b/ui-kit/react/upgrading-from-v5.mdx
@@ -1,7 +1,29 @@
---
title: "Upgrading From V5"
+description: "Migration guide for upgrading from CometChat v5 to v6 React UI Kit with updated localization, date formatting, and API changes."
---
+{/* TL;DR for Agents and Quick Reference */}
+
+**Quick Reference for AI Agents & Developers**
+
+Key changes in v6:
+- **Initialization**: `init(language, resources)` → `init(settings: LocalizationSettings)`
+- **Language codes**: `en` → `en-US`, `en-GB`
+- **Add translations**: Use `addTranslation()` method
+- **Date formatting**: New `CalendarObject` support
+- **Missing keys**: New `missingKeyHandler` callback
+
+```tsx
+// v6 initialization
+CometChatLocalize.init({
+ language: "en-US",
+ translationsForLanguage: { "en-US": { conversation_chat_title: "Chats" } },
+ calendarObject: new CalendarObject({ today: "hh:mm A" }),
+});
+```
+
+
## Introduction
The **CometChat v6 React UI Kit** introduces a **revamped localization system** with enhanced support for **language management, date formatting, and missing key handling**. This guide outlines the key differences and provides a **step-by-step migration process** from **v5 to v6**.
@@ -151,3 +173,22 @@ In CometChat v6 UI Kit, the language codes have been expanded to distinguish bet
## Properties & Methods
In CometChat v6 UI Kit, several props and methods in components and the CometChatLocalize class have been updated. For a detailed overview of newly added, renamed, and removed properties/methods, refer to the [Property Changes](/ui-kit/react/property-changes) Documentation.
+
+---
+
+## Next Steps
+
+
+
+ Detailed list of property changes in v6.
+
+
+ Configure language settings and translations.
+
+
+ Customize colors, fonts, and styling.
+
+
+ Explore all available UI components.
+
+
diff --git a/ui-kit/react/url-formatter-guide.mdx b/ui-kit/react/url-formatter-guide.mdx
index 0707d3b0..c5123d74 100644
--- a/ui-kit/react/url-formatter-guide.mdx
+++ b/ui-kit/react/url-formatter-guide.mdx
@@ -1,7 +1,31 @@
---
title: "URL Formatter"
+description: "A specialized formatter that automatically detects URLs in text messages and converts them into clickable links."
---
+{/* TL;DR for Agents and Quick Reference */}
+
+**Quick Reference for AI Agents & Developers**
+
+```tsx
+import { CometChatTextFormatter } from "@cometchat/chat-uikit-react";
+
+// Create URL formatter extending CometChatTextFormatter
+class CometChatUrlsFormatter extends CometChatTextFormatter {
+ constructor(regexPatterns) {
+ super();
+ this.setRegexPatterns(regexPatterns);
+ }
+}
+
+// Usage
+const urlFormatter = new CometChatUrlsFormatter([/(https?:\/\/[^\s]+)/g]);
+```
+
+- **Custom Text Formatter** → [CometChatTextFormatter](/ui-kit/react/custom-text-formatter-guide)
+- **Message List** → [CometChatMessageList](/ui-kit/react/message-list)
+
+
## Overview
`CometChatUrlsFormatter` is a specialized subclass of `CometChatTextFormatter` designed to automatically detect URLs in text messages and convert them into clickable links, allowing users to navigate to the web addresses effortlessly within your CometChat application.
@@ -83,3 +107,23 @@ onUrlClick(event) {
window.open(url, '_blank');
}
```
+
+---
+
+## Next Steps
+
+
+
+ Learn the base class for creating custom formatters.
+
+
+ Implement @mentions in your chat application.
+
+
+ Create keyboard shortcuts for quick text insertion.
+
+
+ Display messages with formatted URLs.
+
+
+```
diff --git a/ui-kit/react/users.mdx b/ui-kit/react/users.mdx
index ff44ce47..0a849363 100644
--- a/ui-kit/react/users.mdx
+++ b/ui-kit/react/users.mdx
@@ -1,7 +1,28 @@
---
title: "Users"
+description: "A component that displays a searchable list of all available users with online/offline status indicators."
---
+{/* TL;DR for Agents and Quick Reference */}
+
+**Quick Reference for AI Agents & Developers**
+
+```tsx
+import { CometChatUsers } from "@cometchat/chat-uikit-react";
+
+// Minimal usage
+
+
+// With common props
+ setSelectedUser(user)}
+ hideUserStatus={false}
+ selectionMode={SelectionMode.none}
+ showSearchBar={true}
+/>
+```
+
+
## Overview
The Users is a Component, showcasing an accessible list of all available users. It provides an integral search functionality, allowing you to locate any specific user swiftly and easily. For each user listed, the widget displays the user's name by default, in conjunction with their avatar when available. Furthermore, it includes a status indicator, visually informing you whether a user is currently online or offline.
@@ -10,6 +31,10 @@ The Users is a Component, showcasing an accessible list of all available users.

+
+**Available via:** [UI Kits](/ui-kit/react/overview) | [SDK](/sdk/javascript/overview) | [REST API](https://api-explorer.cometchat.com)
+
+
The Users component is composed of the following BaseComponents:
| Components | Description |
@@ -26,7 +51,7 @@ The Users component is composed of the following BaseComponents:
The following code snippet illustrates how you can directly incorporate the Users component into your Application.
-
+
```tsx
import { CometChatUsers } from "@cometchat/chat-uikit-react";
@@ -39,21 +64,6 @@ export default UsersDemo;
-
-```tsx
-import { UsersDemo } from "./UsersDemo";
-
-export default function App() {
- return (
-
-
-
- );
-}
-```
-
-
-
### Actions
@@ -67,7 +77,7 @@ The `onSelect` action is activated when you select the done icon while in select
This action does not come with any predefined behavior. However, you have the flexibility to override this event and tailor it to suit your needs using the following code snippet.
-
+
```ts
import { CometChatUsers, SelectionMode } from "@cometchat/chat-uikit-react";
@@ -1128,3 +1138,23 @@ export default UsersDemo;
+
+
+---
+
+## Next Steps
+
+
+
+ Display and manage group lists
+
+
+ Display members of a group
+
+
+ Display conversation lists
+
+
+ Display messages for a user
+
+