> ## Documentation Index
> Fetch the complete documentation index at: https://cometchat-22654f5b-docs-llms-scoped-indexes.mintlify.site/llms.txt
> Use this file to discover all available pages before exploring further.

# Label

> Label — CometChat documentation.

## Overview

This element provides descriptive information about the associated UI element.

## Properties

| Name | Type | Description |
| - | - | - |
| text | string | Descriptive text associated with the UI element |
| labelStyle | [LabelStyle](/ui-kit/angular/v4/label#labelstyle) | Styling properties and values of the element |

## LabelStyle

Styling properties and values of the element

| Name | Description |
| - | - |
| width | Sets the width of the element |
| height | Sets the height of the element |
| border | Sets the border of the element |
| borderRadius | Sets the border radius of the element |
| background | Sets all background style properties at once, such as color, image, origin and size, or repeat method. [Reference link](https://developer.mozilla.org/en-US/docs/Web/CSS/background) |
| textFont | Sets all the different properties of font for the descriptive text. [Reference link](https://developer.mozilla.org/en-US/docs/Web/CSS/font) |
| textColor | Sets the foreground color of the descriptive text. |

## Usage

<Tabs>
  <Tab title="HTML">
    ```html theme={null}
    <!--make use of the element; pass a custom style-->
    <cometchat-label
    [text]="'Hello World!'"
    [labelStyle]="labelStyle"
    ></cometchat-label>
    ```
  </Tab>

  <Tab title="JavaScript">
    ```js theme={null}
    import '@cometchat/uikit-elements'; //import the web elements package.
    import { labelStyle } from '@cometchat/uikit-elements';

    labelStyle = new LabelStyle({
      textFont: "italic 1.2em 'Fira Sans'"
    });
    ```
  </Tab>
</Tabs>


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