Skip to main content
The CometChatSettings object controls everything the React Router UI Kit Builder renders—messaging, AI helpers, calls, layout, theming, and agent tools.
For developers customizing their chat UI: Edit CometChatSettings.ts to enable/disable features like messaging, calls, AI copilot, and theming. See Integration Guide for setup.

Top-level structure


All boolean settings follow the same pattern: true enables the feature and shows its UI elements, false hides them completely.

1. Chat Features (chatFeatures)

1.1 Core Messaging Experience (coreMessagingExperience)

Essential messaging features: typing indicators, media sharing, message actions, and presence.
Empower users with a seamless chat experience—reply to specific messages with quoted replies, mark conversations as unread for later, and search across all chats instantly. Learn more about Core Features.

1.2 Deeper User Engagement (deeperUserEngagement)

Interactive features: mentions, reactions, polls, voice notes, and collaborative tools.
Configure these features based on your app’s requirements. Learn more about Extensions.

1.3 AI User Copilot (aiUserCopilot)

AI-powered features to help users start and navigate conversations.
AI User Copilot features require an OpenAI API key. Configure it in the CometChat Dashboard under Chat & Messaging > Settings. Learn more about AI Features.

1.4 User Management (userManagement)

1.5 Group Management (groupManagement)

Control what users can do with groups.

1.6 Moderation (moderatorControls)

Admin tools for managing group members and content.
To enable content moderation, set moderation and reportMessage to true, then configure your moderation rules in the CometChat Dashboard. See Rules Management for setup details.

1.7 Private Messaging Within Groups (privateMessagingWithinGroups)

Allow direct messages between group members.

1.8 In-App Sounds (inAppSounds)

Control sound notifications for incoming and outgoing messages.
These toggles control the default message sounds. To use custom audio files or manage sound playback programmatically, see the Sound Manager.

2. Call Features (callFeatures)

2.1 Voice and Video Calling (voiceAndVideoCalling)

Enable voice and video calling capabilities.
Learn more about Call Features.

3. Layout (layout)

Control the overall UI structure and navigation.
Set withSideBar: false for embedded chat widgets or single-conversation views where navigation isn’t needed.

4. Style (style)

Customize colors, fonts, and theme appearance.

4.1 Theme

Use theme: "system" to automatically match the user’s device preference. Preview your brandColor in both light and dark modes for contrast.Learn more about UI Kit Theming for additional customizations.

4.2 Colors

Match brandColor to your website’s primary accent color. Use your site’s existing text colors for primaryTextLight and primaryTextDark to maintain brand consistency.

4.3 Typography


Settings Overview

Below is the complete settings structure with default values. Update these in CometChatSettings.ts to customize your chat experience.

Next Steps

Directory Structure

Understand the organization of the builder components and generated code.

Customizations

Modify component props, styling, and behavior for deeper customization.