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 defaultCallSettingsBuilder to customize the call UI:
Accessibility
Keyboard Navigation
Screen Reader Support
- Call initiation is announced via a live region for screen readers
- Buttons include descriptive
aria-labelattributes for voice and video call actions
Related Components
- CometChatOutgoingCall — Displayed automatically when a call is initiated
- CometChatOngoingCall — Displayed automatically when a call is accepted
- CometChatMessageHeader — Typically hosts the call buttons