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

# Status Indicator

> Status Indicator — CometChat documentation.

`CometChatStatusIndicator` is a component which indicates whether user is online or offline. You can customize the `border` and `background color` of this component.

![](https://mintcdn.com/cometchat-22654f5b/L67V-UjCgqzL1qxp/images/73c6a099-1644912063-120ed7b863f6971adb23040c58588037.gif?s=b4bda7cf3e0aaa5e5498e6f649935f59)

## How to integrate CometChatStatusIndicator?

Since `CometChatStatusIndicator` is a stateless widget, it can be added directly in the build method. `CometChatStatusIndicator` includes various parameters to customize its UI.

***

#### Usage

> [tab] Dart
>
> ```dart theme={null}
> CometChatStatusIndicator(
>     backgroundColor: Colors.green,
> );
> ```

***

## Properties

| Parameters | Type | Description |
| - | - | - |
| **backgroundImage** | Widget | used to set the icon in status indicator |
| **backgroundColor** | Color | used to set the background color of the status indicator |
| **style** | [StatusIndicatorStyle](https://www.cometchat.com/docs/ui-kit/flutter/v4/status-indicator.md) | used to set border of custom style |

***

## StatusIndicatorStyle

| Parameters | Type | Description |
| - | - | - |
| **borderRadius** | double | used to set the border radius |
| **height** | double | used to set the height |
| **width** | double | used to set width |
| **border** | BoxBorder | used to set border of status indicator |
| **gradient** | Gradient | used to set a gradient background |

***

## Usage

> [tab] Dart
>
> ```dart theme={null}
> CometChatStatusIndicator(
>     backgroundColor: Colors.pink,
>     style: StatusIndicatorStyle(
>         borderRadius: 24,
>         width: 20,
>         height: 20,
>     )
> );
> ```


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