> ## 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.

# Text Bubble

> Text Bubble — CometChat documentation.

`CometChatTextBubble` is the content view shown for TextMessage.

## Properties

| Name | Type | Description |
| - | - | - |
| text | string | Text to be displayed |
| textStyle | [TextBubbleStyle](https://www.cometchat.com/docs/ui-kit/react/v4/text-bubble.md#textbubblestyle) | Styling properties and values of the [Text bubble](https://www.cometchat.com/docs/ui-kit/react/v4/text-bubble.md) element |

## TextBubbleStyle

| Name | Description |
| - | - |
| textFont | Sets all the different properties of font for the text. [Reference link](https://developer.mozilla.org/en-US/docs/Web/CSS/font) |
| textColor | Sets the foreground color of the text. |

## Usage

> [tab] JavaScript
>
> ```javascript theme={null}
> import '@cometchat/uikit-elements'; //import the web elements package
>
> //use the element
> <cometchat-text-bubble text="Hey, there!!"></cometchat-text-bubble>
> ```

## Usage

> [tab] XML
>
> ```xml theme={null}
> <com.cometchat.chatuikit.shared.views.CometChatTextBubble.CometChatTextBubble
>         android:id="@+id/text_bubble"
>         android:layout_width="wrap_content"
>         android:layout_height="wrap_content" />
> ```

> [tab] Java
>
> ```java theme={null}
> CometChatTextBubble cometChatTextBubble=view.findViewById(R.id.text_bubble);
> cometChatTextBubble.setText("Keep calm and chat on!");
> ```

> [tab] Kotlin
>
> ```kotlin theme={null}
> val cometChatTextBubble: CometChatTextBubble = findViewById(R.id.text_bubble)
> cometChatTextBubble.setText("Keep calm and chat on!")
> ```


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