This element handles the display for an individual text message.

Properties

NameTypeDescription
textstringText to be displayed
textStyleTextBubbleStyleStyling properties and values of the Text bubble element
textFormattersTextFormatters[]Accepts Array of textFormatters

TextBubbleStyle

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

Usage

import "@cometchat/uikit-elements"; //import the web elements package

//use the element
<cometchat-text-bubble text="Hey, there!!"></cometchat-text-bubble>;