AI Integration Quick Reference
AI Integration Quick Reference
Overview
CometChatOutgoingCall is a purely presentational component that displays the outgoing call screen while waiting for the receiver to answer. It shows the receiver’s name, avatar, a “Calling…” subtitle, and an end-call button.
Live Preview — interact with the default outgoing call screen.Open in Storybook ↗
The component handles:
- Displaying receiver name and avatar from the
callobject - “Calling…” subtitle text
- End-call/cancel button
- Outgoing call sound playback (looping while mounted, pauses on unmount)
Required prop: Thecallprop is required. The component needs a validCometChat.Callobject to render receiver information.
Typical usage:CometChatOutgoingCallis typically rendered byCometChatMessageHeaderorCometChatIncomingCallinternally when a call is initiated, but it can be used standalone.
Usage
Flat API
Standalone Usage Example
Actions and Events
Callback Props
| Prop | Signature | Fires when |
|---|---|---|
onCallCanceled | () => void | User clicks the cancel/end button |
onError | ((error: CometChat.CometChatException) => void) | null | SDK error occurs |
Events Emitted
This component does not emit any UI events.Events Received
This component does not subscribe to any UI events from other components.SDK Listeners (Automatic)
This component does not attach any SDK listeners. It is purely presentational — the parent component is responsible for managing call state transitions (e.g., listening foronOutgoingCallAccepted or onOutgoingCallRejected).
Customization
View Props
Use view props to replace sections of the default UI while keeping the component’s behavior intact:| Slot | Type | Replaces |
|---|---|---|
titleView | ReactNode | Receiver name |
subtitleView | ReactNode | ”Calling…” text |
avatarView | ReactNode | Receiver avatar |
cancelButtonView | ReactNode | End-call button |
titleView

- TypeScript
- CSS
subtitleView

- TypeScript
- CSS
avatarView

- TypeScript
- CSS
CSS Styling
Override design tokens on the component selector:Props
Thecall prop is required. All other props are optional.
call
The CometChat call object representing the outgoing call. Required.| Type | CometChat.Call |
| Required | Yes |
disableSoundForCalls
Disable the outgoing call sound.| Type | boolean |
| Default | false |
customSoundForCalls
Custom sound URL to play during the outgoing call (replaces the built-in sound).| Type | string |
| Default | Built-in outgoing call sound |
onCallCanceled
Callback when the user clicks the cancel/end button.| Type | () => void |
| Default | undefined |
onError
Callback when an SDK error occurs.| Type | ((error: CometChat.CometChatException) => void) | null |
| Default | null |
titleView
Custom view that replaces the receiver name.| Type | ReactNode |
| Default | undefined |
subtitleView
Custom view that replaces the “Calling…” text.| Type | ReactNode |
| Default | undefined |
avatarView
Custom view that replaces the receiver avatar.| Type | ReactNode |
| Default | undefined |
cancelButtonView
Custom view that replaces the end-call button.| Type | ReactNode |
| Default | undefined |
className
Additional CSS class name applied to the root element.| Type | string |
| Default | undefined |
CSS Selectors
| Target | Selector |
|---|---|
| Root container | .cometchat-outgoing-call |
| Title container | .cometchat-outgoing-call__title-container |
| Title | .cometchat-outgoing-call__title |
| Subtitle | .cometchat-outgoing-call__subtitle |
| Avatar | .cometchat-outgoing-call__avatar |
| Cancel button | .cometchat-outgoing-call__button |
| Cancel button icon | .cometchat-outgoing-call__button-icon |
Next Steps
Incoming Call
Handle incoming call notifications with accept/decline actions
Call Logs
Browse call history and re-initiate calls
Theming
Customize colors, fonts, and spacing