Skip to main content

Minimal Example

// Simplest working render
import { [ComponentName] } from "@cometchat/chat-uikit-react";

function App() {
  return <[ComponentName] />;
}
[Component Name] minimal example screenshot

Props

Required Props

PropTypeDescription
[propName][type][Description of the required prop]

Data Props

PropTypeDefaultDescription
[propName][type][default][Description of the data prop]

Callback Props

PropTypeDescription
[onEvent][(param: Type) => void][Description of the callback]

Visibility Props

PropTypeDefaultDescription
[showElement][boolean][true/false][Description of visibility control]

View Slots

SlotSignatureReplaces
[slotName][(props: SlotProps) => React.ReactNode][Default element replaced]

Events

EventPayloadDescription
[eventName][PayloadType][Description of when event fires]

CSS Classes

ClassElement
[cometchat-component-name][Root container element]
[cometchat-component-name__element][Specific element description]