To initialize the UI Kit, you will need the following credentials from your CometChat application:Ensure you have these details ready before proceeding with the installation and configuration.
- App ID
- Auth Key
- Region
Technology | Description |
---|---|
Node.js | JavaScript runtime environment |
npm | Node Package Manager |
React | JavaScript library for UI development |
React DOM | React package for rendering UI |
Init
method.
Init
method at the beginning of your application to ensure all CometChat functionalities are properly configured.
UIKitSettings
class. It is primarily recommended for proof-of-concept (POC) development or early-stage application development.For secure authentication, use the Auth Token
method instead.UID
. You can either:
cometchat-uid-1
cometchat-uid-2
cometchat-uid-3
cometchat-uid-4
cometchat-uid-5
Tip: You can fork the sandbox, insert your CometChat credentials (App ID, Region, Auth Key.) in the code, and immediately preview how the UI and messages respond in real time.Integrate Conversation List + Message
Tip: You can fork the sandbox, insert your CometChat credentials (App ID, Region, Auth Key.) in the code, and immediately preview how the UI and messages respond in real time.Integrate One-to-One/Group Chat
Tip: You can fork the sandbox, insert your CometChat credentials (App ID, Region, Auth Key.) in the code, and immediately preview how the UI and messages respond in real time.Integrate Tab-Based Chat
<iframe>
(or any host that isolates your UI into a separate DOM), wrap your entire tree in the new CometChatFrameProvider
. This makes sure all UI-Kit internals (dialogs, portals, etc.) mount into the correct frame.
Prop | Type | Description |
---|---|---|
iframeId | string | The DOM id of the target <iframe> element. |