Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion docs.json
Original file line number Diff line number Diff line change
Expand Up @@ -465,7 +465,8 @@
]
},
"ui-kit/react/call-features",
"ui-kit/react/campaigns"
"ui-kit/react/campaigns",
"ui-kit/react/rtl-support"
]
},
{
Expand Down
24 changes: 20 additions & 4 deletions ui-kit/react/cometchat-provider.mdx
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
---
title: "CometChatProvider"
description: "The root provider that composes all internal contexts (plugin registry, theme, locale, global config, events) for the React UI Kit."
description: "The root provider that composes all internal contexts (plugin registry, theme, locale, layout direction, global config, events) for the React UI Kit."
---

## Overview

Every CometChat component must be rendered inside a `<CometChatProvider>` which supplies theme, locale, plugin registry, global config, and real-time events to the component tree.
Every CometChat component must be rendered inside a `<CometChatProvider>` which supplies theme, locale, layout direction, plugin registry, global config, and real-time events to the component tree.

`CometChatProvider` does **not** handle SDK initialization or user login. You must call `CometChatUIKit.init()` and `CometChatUIKit.login()` (or `loginWithAuthToken()`) imperatively before mounting the provider.

Expand Down Expand Up @@ -63,6 +63,7 @@ To turn on offline support (saved chats without a network, queued sends), add `.
| `config` | `CometChatGlobalConfig` | No | `{}` | Global flags (`hideReceipts`, `hideUserStatus`, etc.) |
| `theme` | `"light" \| "dark"` | No | `"light"` | Active theme |
| `locale` | `string` | No | `"en-us"` | Language code for localization |
| `layoutDirection` | `"auto" \| "ltr" \| "rtl"` | No | — (the builder's value, `"auto"` by default) | Layout direction for every UI Kit component inside the provider. `"auto"` follows the page's `dir`. The same global setting as `UIKitSettingsBuilder.setLayoutDirection()`; when passed, it takes precedence. See [RTL Support](/ui-kit/react/rtl-support) |
| `children` | `ReactNode` | Yes | — | Your app content |

---
Expand All @@ -77,6 +78,20 @@ To turn on offline support (saved chats without a network, queued sends), add `.

---

## With Layout Direction

Language and layout direction are separate settings. For an Arabic chat, pass `locale` for the strings, and either set `<html dir="rtl">` (the UI Kit follows the page by default) or pass `layoutDirection`:

```tsx
<CometChatProvider locale="ar" layoutDirection="rtl">
<MyChatApp />
</CometChatProvider>
```

The prop is React state like any other, so changing it re-renders the UI Kit in the new direction. Leave it unset (rather than `"auto"`) to keep a direction set with `UIKitSettingsBuilder.setLayoutDirection()`. See [RTL Support](/ui-kit/react/rtl-support).

---

## With Additional Plugins

All default plugins (text, image, file, audio, video, AI, etc.) are always included. Pass your own custom plugins via the `plugins` prop:
Expand Down Expand Up @@ -164,8 +179,9 @@ CometChatProvider
└─ GlobalConfigProvider — hideReceipts, hideUserStatus, etc.
└─ ThemeProvider — data-theme attribute + CSS variables
└─ LocaleProvider — localization translations
└─ EventsProvider — SDK listeners + UI events
└─ {children}
└─ LayoutDirectionProvider — global layout direction (RTL)
└─ EventsProvider — SDK listeners + UI events
└─ {children}
```

---
Expand Down
28 changes: 28 additions & 0 deletions ui-kit/react/components/ai-assistant-chat.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -388,6 +388,23 @@

---

## Layout Direction

`CometChatAIAssistantChat` follows the UI Kit's layout direction. Pass `layoutDirection` to set it for this component only: it overrides the global setting for `CometChatAIAssistantChat` and the components inside it, including the menus, popovers and dialogs it opens. See [RTL Support](/ui-kit/react/rtl-support).

```tsx
<CometChatAIAssistantChat user={aiUser} layoutDirection="rtl" />
```

`CometChatAIAssistantChatHistory` takes `layoutDirection` too.

| | |
| --- | --- |
| Type | `'ltr' \| 'rtl'` |
| Default | `undefined`: inherits from the UI Kit component around it, then the global setting |

---

## Props

`user` is required. All other props are optional.
Expand All @@ -405,7 +422,7 @@

---

### streamingSpeed

Check warning on line 425 in ui-kit/react/components/ai-assistant-chat.mdx

View check run for this annotation

Mintlify / Mintlify Validation (cometchat-22654f5b) - vale-spellcheck

Vale.Spelling

'streamingSpeed' looks like code; format it as code.

Milliseconds between text chunks during streaming display.

Expand Down Expand Up @@ -458,7 +475,7 @@

---

### suggestedMessages

Check warning on line 478 in ui-kit/react/components/ai-assistant-chat.mdx

View check run for this annotation

Mintlify / Mintlify Validation (cometchat-22654f5b) - vale-spellcheck

Vale.Spelling

'suggestedMessages' looks like code; format it as code.

Custom suggestion texts displayed as pills in the empty state. Overrides suggestions from user metadata.

Expand Down Expand Up @@ -579,7 +596,7 @@

---

### emptyView

Check warning on line 599 in ui-kit/react/components/ai-assistant-chat.mdx

View check run for this annotation

Mintlify / Mintlify Validation (cometchat-22654f5b) - vale-spellcheck

Vale.Spelling

'emptyView' looks like code; format it as code.

Custom empty state view. Replaces the entire default greeting (image + greeting + intro + suggestions).

Expand All @@ -590,7 +607,7 @@

---

### loadingView

Check warning on line 610 in ui-kit/react/components/ai-assistant-chat.mdx

View check run for this annotation

Mintlify / Mintlify Validation (cometchat-22654f5b) - vale-spellcheck

Vale.Spelling

'loadingView' looks like code; format it as code.

Custom loading view.

Expand All @@ -601,7 +618,7 @@

---

### errorView

Check warning on line 621 in ui-kit/react/components/ai-assistant-chat.mdx

View check run for this annotation

Mintlify / Mintlify Validation (cometchat-22654f5b) - vale-spellcheck

Vale.Spelling

'errorView' looks like code; format it as code.

Custom error view.

Expand All @@ -612,7 +629,7 @@

---

### onError

Check warning on line 632 in ui-kit/react/components/ai-assistant-chat.mdx

View check run for this annotation

Mintlify / Mintlify Validation (cometchat-22654f5b) - vale-spellcheck

Vale.Spelling

'onError' looks like code; format it as code.

Callback when an SDK error occurs.

Expand All @@ -623,7 +640,7 @@

---

### className

Check warning on line 643 in ui-kit/react/components/ai-assistant-chat.mdx

View check run for this annotation

Mintlify / Mintlify Validation (cometchat-22654f5b) - vale-spellcheck

Vale.Spelling

'className' looks like code; format it as code.

Additional CSS class name applied to the root element.

Expand Down Expand Up @@ -711,6 +728,17 @@

---

### layoutDirection

Check warning on line 731 in ui-kit/react/components/ai-assistant-chat.mdx

View check run for this annotation

Mintlify / Mintlify Validation (cometchat-22654f5b) - vale-spellcheck

Vale.Spelling

'layoutDirection' looks like code; format it as code.

Lays this component out left to right or right to left, overriding the UI Kit's global layout direction. See [RTL Support](/ui-kit/react/rtl-support).

| | |
| --- | --- |
| Type | `'ltr' \| 'rtl'` |
| Default | `undefined` (inherits) |

---

## CSS Selectors

| Target | Selector |
Expand Down
28 changes: 28 additions & 0 deletions ui-kit/react/components/audio-bubble.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@

Key capabilities:

- **Stacked audio cards** — one card per audio attachment with filename, play/pause, seekable slider, elapsed/total time

Check warning on line 37 in ui-kit/react/components/audio-bubble.mdx

View check run for this annotation

Mintlify / Mintlify Validation (cometchat-22654f5b) - vale-spellcheck

Vale.Spelling

Did you really mean 'seekable'?
- **Inline playback** — plays audio directly in the bubble without a fullscreen viewer
- **Download button** — download individual audio files
- **Batch grouping** — rendered as one connected group when several media messages are sent together (handled by the [message list](/ui-kit/react/components/message-list#multi-attachment-batch-grouping))
Expand Down Expand Up @@ -79,7 +79,7 @@
| --- | --- |
| Play/Pause button | Toggles playback for that audio file |
| Filename | Display name of the audio file |
| Seek slider | Seekable progress bar showing current position |

Check warning on line 82 in ui-kit/react/components/audio-bubble.mdx

View check run for this annotation

Mintlify / Mintlify Validation (cometchat-22654f5b) - vale-spellcheck

Vale.Spelling

Did you really mean 'Seekable'?
| Time display | `currentTime / totalDuration` in `m:ss` format |
| Download button | Downloads the audio file |

Expand All @@ -96,6 +96,23 @@

---

## Layout Direction

`CometChatAudiosBubble` follows the UI Kit's layout direction. Pass `layoutDirection` to set it for this component only: it overrides the global setting for `CometChatAudiosBubble` and everything inside it. See [RTL Support](/ui-kit/react/rtl-support).

```tsx
<CometChatAudiosBubble message={message} layoutDirection="rtl" />
```

`CometChatAudioBubble` takes `layoutDirection` too. The audio player itself always stays left to right.

| | |
| --- | --- |
| Type | `'ltr' \| 'rtl'` |
| Default | `undefined`: inherits from the UI Kit component around it, then the global setting |

---

## Props

### message
Expand All @@ -120,7 +137,7 @@

---

### textFormatters

Check warning on line 140 in ui-kit/react/components/audio-bubble.mdx

View check run for this annotation

Mintlify / Mintlify Validation (cometchat-22654f5b) - vale-spellcheck

Vale.Spelling

'textFormatters' looks like code; format it as code.

Text formatters applied to the caption (mentions, URLs).

Expand All @@ -131,7 +148,7 @@

---

### className

Check warning on line 151 in ui-kit/react/components/audio-bubble.mdx

View check run for this annotation

Mintlify / Mintlify Validation (cometchat-22654f5b) - vale-spellcheck

Vale.Spelling

'className' looks like code; format it as code.

Additional CSS class applied to the root element.

Expand All @@ -142,6 +159,17 @@

---

### layoutDirection

Check warning on line 162 in ui-kit/react/components/audio-bubble.mdx

View check run for this annotation

Mintlify / Mintlify Validation (cometchat-22654f5b) - vale-spellcheck

Vale.Spelling

'layoutDirection' looks like code; format it as code.

Lays this component out left to right or right to left, overriding the UI Kit's global layout direction. See [RTL Support](/ui-kit/react/rtl-support).

| | |
| --- | --- |
| Type | `'ltr' \| 'rtl'` |
| Default | `undefined` (inherits) |

---

## CSS Selectors

| Target | Selector |
Expand Down
26 changes: 26 additions & 0 deletions ui-kit/react/components/call-action-bubble.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -101,6 +101,21 @@

---

## Layout Direction

`CometChatCallActionBubble` follows the UI Kit's layout direction. Pass `layoutDirection` to set it for this component only: it overrides the global setting for `CometChatCallActionBubble` and everything inside it. See [RTL Support](/ui-kit/react/rtl-support).

```tsx
<CometChatCallActionBubble message={message} layoutDirection="rtl" />
```

| | |
| --- | --- |
| Type | `'ltr' \| 'rtl'` |
| Default | `undefined`: inherits from the UI Kit component around it, then the global setting |

---

## Props

### message
Expand All @@ -114,7 +129,7 @@

---

### className

Check warning on line 132 in ui-kit/react/components/call-action-bubble.mdx

View check run for this annotation

Mintlify / Mintlify Validation (cometchat-22654f5b) - vale-spellcheck

Vale.Spelling

'className' looks like code; format it as code.

Additional CSS class name applied to the root element.

Expand All @@ -125,6 +140,17 @@

---

### layoutDirection

Check warning on line 143 in ui-kit/react/components/call-action-bubble.mdx

View check run for this annotation

Mintlify / Mintlify Validation (cometchat-22654f5b) - vale-spellcheck

Vale.Spelling

'layoutDirection' looks like code; format it as code.

Lays this component out left to right or right to left, overriding the UI Kit's global layout direction. See [RTL Support](/ui-kit/react/rtl-support).

| | |
| --- | --- |
| Type | `'ltr' \| 'rtl'` |
| Default | `undefined` (inherits) |

---

## CSS Selectors

The bubble renders through the `CometChatActionBubble` primitive, so it uses the action-bubble selectors.
Expand Down
26 changes: 26 additions & 0 deletions ui-kit/react/components/call-bubble.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,21 @@

---

## Layout Direction

`CometChatCallBubble` follows the UI Kit's layout direction. Pass `layoutDirection` to set it for this component only: it overrides the global setting for `CometChatCallBubble` and everything inside it. See [RTL Support](/ui-kit/react/rtl-support).

```tsx
<CometChatCallBubble message={message} layoutDirection="rtl" />
```

| | |
| --- | --- |
| Type | `'ltr' \| 'rtl'` |
| Default | `undefined`: inherits from the UI Kit component around it, then the global setting |

---

## Props

### message
Expand Down Expand Up @@ -99,7 +114,7 @@

---

### className

Check warning on line 117 in ui-kit/react/components/call-bubble.mdx

View check run for this annotation

Mintlify / Mintlify Validation (cometchat-22654f5b) - vale-spellcheck

Vale.Spelling

'className' looks like code; format it as code.

Additional CSS class applied to the root element.

Expand All @@ -110,6 +125,17 @@

---

### layoutDirection

Check warning on line 128 in ui-kit/react/components/call-bubble.mdx

View check run for this annotation

Mintlify / Mintlify Validation (cometchat-22654f5b) - vale-spellcheck

Vale.Spelling

'layoutDirection' looks like code; format it as code.

Lays this component out left to right or right to left, overriding the UI Kit's global layout direction. See [RTL Support](/ui-kit/react/rtl-support).

| | |
| --- | --- |
| Type | `'ltr' \| 'rtl'` |
| Default | `undefined` (inherits) |

---

## CSS Selectors

| Target | Selector |
Expand Down
26 changes: 26 additions & 0 deletions ui-kit/react/components/call-buttons.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -157,7 +157,7 @@
}
```

#### onError

Check warning on line 160 in ui-kit/react/components/call-buttons.mdx

View check run for this annotation

Mintlify / Mintlify Validation (cometchat-22654f5b) - vale-spellcheck

Vale.Spelling

'onError' looks like code; format it as code.

Fires on internal errors during call initiation.

Expand Down Expand Up @@ -351,6 +351,21 @@

---

## Layout Direction

`CometChatCallButtons` follows the UI Kit's layout direction. Pass `layoutDirection` to set it for this component only: it overrides the global setting for `CometChatCallButtons` and the components inside it, including the menus, popovers and dialogs it opens. See [RTL Support](/ui-kit/react/rtl-support).

```tsx
<CometChatCallButtons user={user} layoutDirection="rtl" />
```

| | |
| --- | --- |
| Type | `'ltr' \| 'rtl'` |
| Default | `undefined`: inherits from the UI Kit component around it, then the global setting |

---

## Props

All props are optional. Sorted alphabetically.
Expand All @@ -366,7 +381,7 @@

---

### className

Check warning on line 384 in ui-kit/react/components/call-buttons.mdx

View check run for this annotation

Mintlify / Mintlify Validation (cometchat-22654f5b) - vale-spellcheck

Vale.Spelling

'className' looks like code; format it as code.

Additional CSS class name applied to the root container.

Expand Down Expand Up @@ -421,7 +436,7 @@

---

### onError

Check warning on line 439 in ui-kit/react/components/call-buttons.mdx

View check run for this annotation

Mintlify / Mintlify Validation (cometchat-22654f5b) - vale-spellcheck

Vale.Spelling

'onError' looks like code; format it as code.

Callback fired when the component encounters an error.

Expand Down Expand Up @@ -487,6 +502,17 @@

---

### layoutDirection

Check warning on line 505 in ui-kit/react/components/call-buttons.mdx

View check run for this annotation

Mintlify / Mintlify Validation (cometchat-22654f5b) - vale-spellcheck

Vale.Spelling

'layoutDirection' looks like code; format it as code.

Lays this component out left to right or right to left, overriding the UI Kit's global layout direction. See [RTL Support](/ui-kit/react/rtl-support).

| | |
| --- | --- |
| Type | `'ltr' \| 'rtl'` |
| Default | `undefined` (inherits) |

---

## CSS Selectors

| Target | Selector |
Expand Down
26 changes: 26 additions & 0 deletions ui-kit/react/components/call-logs.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -205,13 +205,28 @@

---

## Layout Direction

`CometChatCallLogs` follows the UI Kit's layout direction. Pass `layoutDirection` to set it for this component only: it overrides the global setting for `CometChatCallLogs` and the components inside it, including the menus, popovers and dialogs it opens. See [RTL Support](/ui-kit/react/rtl-support).

```tsx
<CometChatCallLogs layoutDirection="rtl" />
```

| | |
| --- | --- |
| Type | `'ltr' \| 'rtl'` |
| Default | `undefined`: inherits from the UI Kit component around it, then the global setting |

---

## Props

All props are optional.

---

### activeCall

Check warning on line 229 in ui-kit/react/components/call-logs.mdx

View check run for this annotation

Mintlify / Mintlify Validation (cometchat-22654f5b) - vale-spellcheck

Vale.Spelling

'activeCall' looks like code; format it as code.

Object representing the currently active/selected call log. The matching item receives an active visual state.

Expand Down Expand Up @@ -266,7 +281,7 @@

---

### onError

Check warning on line 284 in ui-kit/react/components/call-logs.mdx

View check run for this annotation

Mintlify / Mintlify Validation (cometchat-22654f5b) - vale-spellcheck

Vale.Spelling

'onError' looks like code; format it as code.

Callback when an SDK error occurs during fetch operations.

Expand All @@ -288,7 +303,7 @@

---

### loadingView

Check warning on line 306 in ui-kit/react/components/call-logs.mdx

View check run for this annotation

Mintlify / Mintlify Validation (cometchat-22654f5b) - vale-spellcheck

Vale.Spelling

'loadingView' looks like code; format it as code.

Custom loading state view shown while call logs are being fetched.

Expand All @@ -299,7 +314,7 @@

---

### emptyView

Check warning on line 317 in ui-kit/react/components/call-logs.mdx

View check run for this annotation

Mintlify / Mintlify Validation (cometchat-22654f5b) - vale-spellcheck

Vale.Spelling

'emptyView' looks like code; format it as code.

Custom empty state view shown when no call logs exist.

Expand All @@ -310,7 +325,7 @@

---

### errorView

Check warning on line 328 in ui-kit/react/components/call-logs.mdx

View check run for this annotation

Mintlify / Mintlify Validation (cometchat-22654f5b) - vale-spellcheck

Vale.Spelling

'errorView' looks like code; format it as code.

Custom error state view shown when fetching call logs fails.

Expand All @@ -321,7 +336,7 @@

---

### itemView

Check warning on line 339 in ui-kit/react/components/call-logs.mdx

View check run for this annotation

Mintlify / Mintlify Validation (cometchat-22654f5b) - vale-spellcheck

Vale.Spelling

'itemView' looks like code; format it as code.

Custom renderer for the entire call log row.

Expand All @@ -332,7 +347,7 @@

---

### leadingView

Check warning on line 350 in ui-kit/react/components/call-logs.mdx

View check run for this annotation

Mintlify / Mintlify Validation (cometchat-22654f5b) - vale-spellcheck

Vale.Spelling

'leadingView' looks like code; format it as code.

Custom renderer for the avatar section.

Expand All @@ -343,7 +358,7 @@

---

### titleView

Check warning on line 361 in ui-kit/react/components/call-logs.mdx

View check run for this annotation

Mintlify / Mintlify Validation (cometchat-22654f5b) - vale-spellcheck

Vale.Spelling

'titleView' looks like code; format it as code.

Custom renderer for the participant name.

Expand All @@ -354,7 +369,7 @@

---

### subtitleView

Check warning on line 372 in ui-kit/react/components/call-logs.mdx

View check run for this annotation

Mintlify / Mintlify Validation (cometchat-22654f5b) - vale-spellcheck

Vale.Spelling

'subtitleView' looks like code; format it as code.

Custom renderer for the call direction and duration section.

Expand All @@ -365,7 +380,7 @@

---

### trailingView

Check warning on line 383 in ui-kit/react/components/call-logs.mdx

View check run for this annotation

Mintlify / Mintlify Validation (cometchat-22654f5b) - vale-spellcheck

Vale.Spelling

'trailingView' looks like code; format it as code.

Custom renderer for the trailing section (call button + timestamp).

Expand All @@ -376,7 +391,7 @@

---

### showScrollbar

Check warning on line 394 in ui-kit/react/components/call-logs.mdx

View check run for this annotation

Mintlify / Mintlify Validation (cometchat-22654f5b) - vale-spellcheck

Vale.Spelling

'showScrollbar' looks like code; format it as code.

Show the native scrollbar on the call logs list.

Expand All @@ -387,6 +402,17 @@

---

### layoutDirection

Check warning on line 405 in ui-kit/react/components/call-logs.mdx

View check run for this annotation

Mintlify / Mintlify Validation (cometchat-22654f5b) - vale-spellcheck

Vale.Spelling

'layoutDirection' looks like code; format it as code.

Lays this component out left to right or right to left, overriding the UI Kit's global layout direction. See [RTL Support](/ui-kit/react/rtl-support).

| | |
| --- | --- |
| Type | `'ltr' \| 'rtl'` |
| Default | `undefined` (inherits) |

---

## CSS Selectors

| Target | Selector |
Expand Down
26 changes: 26 additions & 0 deletions ui-kit/react/components/collaborative-document-bubble.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,21 @@

---

## Layout Direction

`CometChatCollaborativeDocumentBubble` follows the UI Kit's layout direction. Pass `layoutDirection` to set it for this component only: it overrides the global setting for `CometChatCollaborativeDocumentBubble` and everything inside it. See [RTL Support](/ui-kit/react/rtl-support).

```tsx
<CometChatCollaborativeDocumentBubble message={message} layoutDirection="rtl" />
```

| | |
| --- | --- |
| Type | `'ltr' \| 'rtl'` |
| Default | `undefined`: inherits from the UI Kit component around it, then the global setting |

---

## Props

### message
Expand Down Expand Up @@ -103,7 +118,7 @@

---

### className

Check warning on line 121 in ui-kit/react/components/collaborative-document-bubble.mdx

View check run for this annotation

Mintlify / Mintlify Validation (cometchat-22654f5b) - vale-spellcheck

Vale.Spelling

'className' looks like code; format it as code.

Additional CSS class applied to the root element.

Expand All @@ -114,6 +129,17 @@

---

### layoutDirection

Check warning on line 132 in ui-kit/react/components/collaborative-document-bubble.mdx

View check run for this annotation

Mintlify / Mintlify Validation (cometchat-22654f5b) - vale-spellcheck

Vale.Spelling

'layoutDirection' looks like code; format it as code.

Lays this component out left to right or right to left, overriding the UI Kit's global layout direction. See [RTL Support](/ui-kit/react/rtl-support).

| | |
| --- | --- |
| Type | `'ltr' \| 'rtl'` |
| Default | `undefined` (inherits) |

---

## CSS Selectors

| Target | Selector |
Expand Down
26 changes: 26 additions & 0 deletions ui-kit/react/components/collaborative-whiteboard-bubble.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,21 @@

---

## Layout Direction

`CometChatCollaborativeWhiteboardBubble` follows the UI Kit's layout direction. Pass `layoutDirection` to set it for this component only: it overrides the global setting for `CometChatCollaborativeWhiteboardBubble` and everything inside it. See [RTL Support](/ui-kit/react/rtl-support).

```tsx
<CometChatCollaborativeWhiteboardBubble message={message} layoutDirection="rtl" />
```

| | |
| --- | --- |
| Type | `'ltr' \| 'rtl'` |
| Default | `undefined`: inherits from the UI Kit component around it, then the global setting |

---

## Props

### message
Expand Down Expand Up @@ -103,7 +118,7 @@

---

### className

Check warning on line 121 in ui-kit/react/components/collaborative-whiteboard-bubble.mdx

View check run for this annotation

Mintlify / Mintlify Validation (cometchat-22654f5b) - vale-spellcheck

Vale.Spelling

'className' looks like code; format it as code.

Additional CSS class applied to the root element.

Expand All @@ -114,6 +129,17 @@

---

### layoutDirection

Check warning on line 132 in ui-kit/react/components/collaborative-whiteboard-bubble.mdx

View check run for this annotation

Mintlify / Mintlify Validation (cometchat-22654f5b) - vale-spellcheck

Vale.Spelling

'layoutDirection' looks like code; format it as code.

Lays this component out left to right or right to left, overriding the UI Kit's global layout direction. See [RTL Support](/ui-kit/react/rtl-support).

| | |
| --- | --- |
| Type | `'ltr' \| 'rtl'` |
| Default | `undefined` (inherits) |

---

## CSS Selectors

| Target | Selector |
Expand Down
Loading