sw-call-status
sw-call-status
Compact status pill that mirrors the live call state plus a running duration timer once the call is connected.
Subscribes to call.status$ (or to callStateContext.status when
nested inside <sw-call-provider> / <sw-call-widget>) and renders
three pieces of UI:
- A circular status indicator dot whose color/animation reflects the
current state — pulsing yellow for
connecting/ringing/trying/recovering, solid green forconnected, pulsing red fordisconnecting, solid red fordisconnected/failed, gray fornew/destroyed. - A status label, mapped from the SDK’s
CallStatusenum to a human-readable string (“Connecting…”, “Ringing…”, “Connected”, …). - A monospace
M:SS(orH:MM:SS) duration counter that starts when the call entersconnectedand resets when it leaves.
Input precedence (most specific wins): .call > context.
The label uses aria-live="polite" so screen readers are notified of
state transitions without interrupting the user.
Class: SwCallStatus · Module: packages/web-components/src/components/sw-call-status.ts
class: SwCallStatus, sw-call-status
Fields
call
Explicit Call — when set, subscribes directly to its observables and bypasses context.