Skip to main content

Overview

The CometChatCallButtons component renders voice and video call buttons for initiating calls to a user or group. It delegates call state management and initiation logic to an internal service, and displays the outgoing call overlay and ongoing call screen automatically when a call is in progress.

Key Features

  • Voice & Video Calls: Separate buttons for initiating audio and video calls
  • User & Group Support: Works with both user-to-user and group calls
  • Outgoing Call Overlay: Automatically shows the outgoing call screen when a call is initiated
  • Ongoing Call Screen: Renders the ongoing call UI after a call is accepted
  • Custom Handlers: Override default call initiation with custom click handlers
  • Template Overrides: Replace default buttons with custom templates
  • Global Config Priority: Supports a three-tier priority system (Input > GlobalConfig > Default)
  • Screen Reader Announcements: Announces call initiation for assistive technologies
Live Preview — default call buttons preview. Open in Storybook ↗

Basic Usage

Properties

Events

Customization

CSS Variable Overrides

Custom Button Templates

Custom Call Settings

Override the default CallSettingsBuilder to customize the call UI:
You can also set callSettingsBuilder globally via GlobalConfig so all call components use the same settings without passing the input to each one.

Accessibility

Keyboard Navigation

Screen Reader Support

  • Call initiation is announced via a live region for screen readers
  • Buttons include descriptive aria-label attributes for voice and video call actions