Skip to main content
The exported UI Kit Builder code lives in src/CometChat/. This guide helps you navigate the structure so you know exactly where to make changes.
src
CometChat
CometChatApp.tsx
CometChatSettings.ts
customHooks.ts
decl.d.ts
styleConfig.ts
App.tsx
index.tsx

Root Files

FilePurpose
CometChatApp.tsxMain entry point — import this to render the chat experience
CometChatSettings.tsToggle features on/off (messaging, calls, AI copilot, etc.)
customHooks.tsCustom React hooks used throughout the application
styleConfig.tsGlobal styling configuration (colors, fonts, spacing)

Key Folders

components/

Each component folder contains the main .tsx file and associated hooks (use*.ts). These are the building blocks of your chat UI.
components

context/

State management for the chat application.
context
AppContext.tsx
CometChatContext.tsx
appReducer.ts

styles/

CSS files organized to mirror the components structure. Each component has a corresponding style folder.

locales/

Translation files for multi-language support. Add or modify JSON files here to customize text.

Quick Reference: Where to Customize

What you want to changeWhere to look
Enable/disable featuresCometChatSettings.ts
Theme colors & fontsstyleConfig.ts
Component-specific CSSstyles/<ComponentName>/
Text & translationslocales/<lang>/<lang>.json
Component behaviorcomponents/<ComponentName>/
Prefer using settings and CSS overrides. For extensive changes, create wrapper components instead of modifying core files directly.

Next Steps