sw-call-status
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:
connecting/ringing/trying/
recovering, solid green for connected, pulsing red for
disconnecting, solid red for disconnected/failed, gray for
new/destroyed.CallStatus enum to a
human-readable string (“Connecting…”, “Ringing…”, “Connected”, …).M:SS (or H:MM:SS) duration counter that starts when
the call enters connected and 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
SwCallStatus, sw-call-statusExplicit Call — when set, subscribes directly to its observables and bypasses context.