AI Integration Quick Reference
AI Integration Quick Reference
Where It Fits
CometChatCallButtons is a Component that provides users with the ability to make calls, access call-related functionalities, and control call settings. Clicking this button typically triggers the call to be placed to the desired recipient.

Minimal Render
Actions and Events
Callback Props
onError
Fires on internal errors (network failure, auth issue, SDK exception).Global UI Events
CometChatUIEventHandler emits events subscribable from anywhere in the application. Add listeners and remove them on cleanup.
| Event | Fires when | Payload |
|---|---|---|
ccCallRejected | Initiated call is rejected by the receiver | { call } |
ccCallFailled | Error occurs during the initiated call | { call } |
ccOutgoingCall | User initiates a voice/video call | { call } |
Styling
Using Style you can customize the look and feel of the component in your app. Pass a styling object as a prop to theCometChatCallButtons component.

Visibility Props
| Property | Description | Code |
|---|---|---|
hideVoiceCallButton | Toggle visibility of the voice call button | hideVoiceCallButton?: boolean |
hideVideoCallButton | Toggle visibility of the video call button | hideVideoCallButton?: boolean |
Outgoing Call Configuration
You can customize the properties of the Outgoing Call component by making use of theoutgoingCallConfiguration prop:
OutgoingCallConfiguration can be found under Outgoing Call.