An Angular component for displaying call messages in a chat interface with call type, status, duration, and optional action button
The CometChatCallBubble component is a standalone Angular component that renders call messages within chat conversations. It displays call information including call type (audio/video), call status, duration, and an optional action button for call-back functionality.
The Call Bubble component provides a comprehensive display for call messages with support for both sender (outgoing) and receiver (incoming) styling variants:
Call Type Icon Display: Shows audio or video call icons with incoming/outgoing variants
Call Title: Displays “Voice Call” or “Video Call” based on call type
Call Subtitle: Shows call duration (for ended calls) or status (missed, cancelled, etc.)
Optional Action Button: Configurable button for actions like “Call Back” or “Join”
Sender/Receiver Variants: Different styling for outgoing vs incoming call messages
Full Accessibility Support: ARIA labels, keyboard navigation, and screen reader support
CSS Variable-Based Theming: Easy customization via CSS variables
The CometChat Call message object containing call information. The component extracts call type, status, duration, and session ID from this object
alignment
'left' | 'right'
'left'
Determines sender (right) or receiver (left) styling. When 'right', applies primary color background with white text. When 'left', applies neutral background with neutral text
iconUrl
string
undefined
Optional custom icon URL to override the default call type icon
title
string
undefined
Optional custom title to override the default call type title (Voice Call / Video Call)
subtitle
string
undefined
Optional custom subtitle to override the default status/duration display
buttonText
string
undefined
Optional button text for the action button. If provided and non-empty, the button will be displayed
disableInteraction
boolean
false
When true, disables the action button and other interactive elements within the bubble
Screen readers announce the call bubble with the call type and status (e.g., “Voice Call - Missed Call”). The action button is announced with its text label. The role="article" attribute ensures screen readers treat this as a self-contained piece of content.
Use the call bubble to display call messages in your chat interface, providing users with clear information about call type, status, and duration.
The component requires a valid CometChat.Call message object. Ensure you pass a properly initialized call message to avoid fallback state rendering.
The default title and subtitle are automatically derived from the call message. Only provide custom values via the title and subtitle inputs if you need to override the default behavior.
Use the buttonText input to add call-back functionality. The buttonClick event provides the session ID and message object for initiating a return call.
All text in the component is localized. The component uses existing localization keys from the UIKit for call-related text.