Skip to main content

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.

CometChatBadge is the custom component which is used to display the unread message count. It can be used in places like CometChatListItem, etc.

Properties

NameTypeDescription
countnumberThe numeric value to be displayed
badgeStyleBadgeStyleStyling properties of the element

Badge Style

NameDescription
textFontSets all the different properties of font for the badge text. Reference link
textColorSets the foreground color of the text displayed on the badge.

Usage

<!--use the element-->
<cometchat-badge
[badgeStyle]="badgeStyle"
[count]="'10'"
></cometchat-badge>