Skip to main content
This document provides an overview of the CometChat UI Kit Builder directory structure, helping you understand the organization of the project and where to find specific files when you need to customize or extend functionality.

Overview

The CometChat UI Kit Builder follows a modular structure organized by feature and functionality. All UI Kit Builder files are contained within the src/CometChat/ directory.

Directory Details

Root Files

Key Directories

assets/

Contains UI resources like icons, images, and audio files used throughout the application.

components/

Contains all React components that make up the UI of the UI Kit Builder.
Each component folder typically contains:
  • The main component file (.tsx)
  • Associated hook files (use*.ts) for component logic
  • Subcomponents specific to that feature area

context/

Contains React Context providers used for state management across the application.

locales/

Contains translations for different languages, enabling localization of the UI.

styles/

Contains CSS files for styling components, organized to mirror the components directory structure.

utils/

Contains utility functions and helpers used across the application.

Key Components Overview

  • CometChatHome: Main dashboard component that serves as the entry point for the chat experience
  • CometChatMessages: Core component for displaying and managing chat messages
  • CometChatCallLog: Components for call history and details
  • CometChatDetails: User and group details and settings
  • CometChatLogin: Authentication-related components
  • CometChatSelector/CometChatTabs: Navigation and tab-based interface components

Customization Points

When customizing the UI Kit Builder, you’ll typically work with:
  1. CometChatSettings.ts: To modify high-level configuration
  2. styleConfig.ts: To change theme colors, fonts, and other styling variables
  3. Component styles: To make specific UI adjustments to individual components
  4. Locale files: To modify text strings or add new language support

Recommendations for Modifications

  • Avoid direct modification of core components when possible
  • Use the settings files for configuration changes
  • Use CSS overrides for styling customizations
  • For extensive customizations, consider creating wrapper components that use the UI Kit Builder components as children

Conclusion

This structured breakdown of the CometChat UI Kit Builder directory helps developers understand the project layout, making it easier to navigate, extend, and customize as needed. For further customization and integration details, refer to: