Text bubble
This element handles the display for an individual text message.
Properties
Name | Type | Description |
---|---|---|
text | string | Text to be displayed |
textStyle | TextBubbleStyle | Styling properties and values of the Text bubble element |
textFormatters | TextFormatters[] | Accepts Array of textFormatters |
TextBubbleStyle
Name | Description |
---|---|
textFont | Sets all the different properties of font for the text. Reference link |
textColor | Sets the foreground color of the text. |
Usage
- Javascript
import "@cometchat/uikit-elements"; //import the web elements package
//use the element
<cometchat-text-bubble text="Hey, there!!"></cometchat-text-bubble>;