> ## Documentation Index
> Fetch the complete documentation index at: https://www.cometchat.com/docs/llms.txt
> Use this file to discover all available pages before exploring further.

# UI Components

> UI Components — CometChat documentation.

**UI Components** are building blocks of the UI Kit. **UI Components** are a set of custom classes specially designed to build a rich chat app. There are different UI Components available in the UI Kit Library.

## CometChatUI

**CometChatUI** is an option to launch a fully functional chat application using the UI Kit. In **CometChatUI** all the **UI Components** are interlinked and work together to launch a fully functional chat on your website/application

![](https://mintcdn.com/cometchat-22654f5b/COIVd1spJ2SNEi43/images/a38e7217-1623200231-32de98eb7bd8c6a65bc3817ff43270e7.png?fit=max\&auto=format\&n=COIVd1spJ2SNEi43\&q=85\&s=0f18574f1ed71efecef7e0ea0d1961ea)

> [tab] Angular
>
> ```js theme={null}
> import { CometChatUI } from "../components/CometChatUI/CometChat/cometchat-ui.module";
>
> <div>
>   <CometChatUI></CometChatUI>
> </div>
> ```

## CometChatUserListWithMessages

The `CometChatUserListWithMessages` is a component with a list of users. The component has all the necessary listeners and methods required to display the user's list and shows the set of the messages/chats of the selected user

![](https://mintcdn.com/cometchat-22654f5b/dDWpooIQ48haNjyU/images/7980ed96-1623200239-d050d03c5b531604184c0febfb23a68c.png?fit=max\&auto=format\&n=dDWpooIQ48haNjyU\&q=85\&s=f7a6428ca95c3a8def0a50b5b72df9a7)

> [tab] Angular
>
> ```js theme={null}
> import { CometChatUserListWithMessages } from "../components/Users/CometChat-user-list-with-messages/cometchat-user-list-with-messages.module";
>
> <div>
>   <cometchat-user-list-with-messages></cometchat-user-list-with-messages>
> </div>
> ```

## CometChatGroupListWithMessages

The `CometChatGroupListWithMessages` is a component with a list of groups. The component has all the necessary listeners and methods required to display the group's list and shows the set of the messages/chats of the selected group

![](https://mintcdn.com/cometchat-22654f5b/Mh-tK73gC5erLrBQ/images/f91c54e1-1623200243-a61adb80c6b268aa3ecac505a85a2cf1.png?fit=max\&auto=format\&n=Mh-tK73gC5erLrBQ\&q=85\&s=7821fb09a7b1e7fce7db9271e91a2290)

> [tab] Angular
>
> ```js theme={null}
> import { CometChatGroupListWithMessages } from "../components/Groups/CometChat-group-with-messages/cometchat-group-list-with-messages.module";
> <div>
>   <cometchat-group-list-with-messages></cometchat-group-list-with-messages>
> </div>
> ```

## CometChatConversationListWithMessages

The `CometChatConversationListWithMessages` is a component with a list of recent conversations. The component has all the necessary listeners and methods required to display the recent conversation list and shows the set of the messages/chats of the selected recent conversation

![](https://mintcdn.com/cometchat-22654f5b/2U5tVIzH12dbbFtr/images/af963baa-1623200248-eb3df94bffbbe8e81ddcaff20da8d259.png?fit=max\&auto=format\&n=2U5tVIzH12dbbFtr\&q=85\&s=4abb75b0b0879ee7722d5e30294ccfc8)

> [tab] Angular
>
> ```js theme={null}
> import { CometChatConversationListWithMessages } from "../components/Chats/CometChat-conversation-list-with-messages/cometchat-conversation-list-with-messages.module";
> <div>
>   <cometchat-conversation-list-with-messages></cometchat-conversation-list-with-messages>
> </div>
> ```

## CometChatMessages

The `CometChatMessages` is a component with a list of messages/chats and shows the message component header and message composer.

> [tab] Angular
>
> ```js theme={null}
> import { CometChatMessages } from "../components/Messages/CometChat-messages/cometchat-messages.module";
> <div>
>   <cometchat-messages></cometchat-messages>
> </div>
> ```

## CometChatUserList

The `CometChatUserList` is a component that displays the list of users available to chat. You can use this component within your app if you wish to display the list of users.

![](https://mintcdn.com/cometchat-22654f5b/FdElFhttTImVJEz7/images/e387d01c-1623200254-027278c454f992c5b19690b92fc0562c.png?fit=max\&auto=format\&n=FdElFhttTImVJEz7\&q=85\&s=59bf303c6a6ab1561a9cd8aa154853e2)

> [tab] Angular
>
> ```js theme={null}
> import { CometChatUserList } from "../components/Users/CometChat-user-list/cometchat-user-list.module";
> <div>
>   <cometchat-user-list [friendsOnly]=true> </cometchat-user-list>
> </div>
> ```

| Parameter | Description | Type |
| - | - | - |
| friendsOnly | This property when set to true will return only the friends of the logged-in user. Value could be *true* or *false* | Optional |

## CometChatGroupList

The `CometChatGroupList` is a component that displays the list of groups available. You can use this component within your app if you wish to display the list of groups.

![](https://mintcdn.com/cometchat-22654f5b/7-hZ4AEh99NJJtEC/images/9a9b034c-1623200257-e5b6bec3cbb6bdef1e337706aca2e898.png?fit=max\&auto=format\&n=7-hZ4AEh99NJJtEC\&q=85\&s=a3d5119551dd5b68cfa97b3e959b666d)

> [tab] Angular
>
> ```js theme={null}
> import { CometChatGroupList } from "../components/Groups/CometChat-group-list/cometchat-group-list.module";
> <div>
>   <cometchat-group-list></cometchat-group-list>
> </div>
> ```

## CometChatConversationList

You can use the `CometChatConversationList` component to display the list of recent conversations that the logged-in user was a part of.

![](https://mintcdn.com/cometchat-22654f5b/vk8kXY4T6hhH4l00/images/6cbd45b0-1623200260-c16048c76e3b18cff4ce2c3ba019e3b6.png?fit=max\&auto=format\&n=vk8kXY4T6hhH4l00\&q=85\&s=7aa50694e00c5fc3d1256537a96e7f8c)

> [tab] Angular
>
> ```js theme={null}
> import { CometChatConversationList } from "../components/Chats/CometChat-conversation-list/cometchat-conversation-list.module";
> <div>
>   <cometchat-conversation-list></cometchat-conversation-list>
> </div>
> ```


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.