Skip to main content

Overview

The CometChatIncomingCall component renders an incoming call notification card when a user receives a voice or video call. It displays the caller’s name, avatar, and call type icon using a CometChatListItem, along with Accept and Decline buttons. After accepting, it automatically renders the ongoing call screen.

Key Features

  • Caller Information: Displays caller name, avatar, and call type (audio/video) icon
  • Accept & Decline: Built-in buttons for accepting or declining the call
  • Ringtone Support: Plays an incoming call ringtone with custom sound support
  • Ongoing Call Transition: Automatically shows the ongoing call screen after accepting
  • Custom Handlers: Override default accept/decline behavior with custom callbacks
  • Template Overrides: Replace any visual section with custom templates
  • Focus Management: Dialog focus trap with Escape key to decline
  • Global Config Priority: Supports a three-tier priority system (Input > GlobalConfig > Default)
Live Preview — default incoming call preview. Open in Storybook ↗

Basic Usage

Properties

Events

Customization

CSS Variable Overrides

Custom Templates

Accessibility

Keyboard Navigation

ARIA Attributes

  • role="alertdialog" on the notification container
  • aria-labelledby references the caller name heading
  • Focus is trapped within the dialog while visible
  • Initial focus is set to the Accept button

Screen Reader Support

  • Incoming call is announced via a live region with caller name and call type
  • Call ended is announced when the call terminates