CallSurface
A voice call screen: wave, avatar, name, status, caption, call buttons.
Group: Media · Kind: macro
Preview
Section titled “Preview”Platforms
Section titled “Platforms”The same specimen painted by React, SwiftUI, Compose and gpui.




Variants
Section titled “Variants”| Prop | Type | Required | Bindable | Description |
|---|---|---|---|---|
name |
string |
yes | yes | Who is on the call. |
avatar |
url |
– | yes | Picture URL. |
state |
ringing | connecting | talking | ended |
– | yes | ringing: Cancel only. Default "talking". |
activity |
idle | listening | thinking | speaking | muted |
– | yes | The wave when talking. Default "speaking". |
level |
number |
– | yes | Level 0 to 1. |
bands |
[number] |
– | yes | Band levels. |
status |
string |
– | yes | Calling… or a timer. |
caption |
string |
– | yes | The live line. |
muted |
boolean |
– | yes | Mic off; bind it. Default false. |
speaker |
boolean |
– | yes | Shows the speaker toggle. |
Events
Section titled “Events”on.mute: runs an actionon.speaker: runs an actionon.hangUp: runs an action
None.
Children
Section titled “Children”none
A2UI basic mapping
Section titled “A2UI basic mapping”No basic catalog component maps here.
Built from
Section titled “Built from”Avatar · Box · Button · Icon · Text · Tooltip · VoiceWave
Accessibility
Section titled “Accessibility”Role: group
group labelled by name; the wave is hidden, the caption a polite live region; mute and speaker are toggle buttons (aria-pressed), every round button labelled by its tooltip text
| Keys | Action |
|---|---|
| – | Tab reaches mute, speaker, end in order |
Enter Space |
press |
Theming
Section titled “Theming”Recipe parts: CallSurface/root CallSurface/head CallSurface/wave CallSurface/avatar CallSurface/name CallSurface/status CallSurface/caption CallSurface/spacer CallSurface/controls CallSurface/muteTip CallSurface/mute CallSurface/muteIcon CallSurface/speakerTip CallSurface/speaker CallSurface/speakerIcon CallSurface/endTip CallSurface/end CallSurface/endIcon CallSurface/cancel CallSurface/cancelLabel
Keyed by: state muted :hover :pressed :focus :disabled :checked :open :selected :invalid :dragover
Related
Section titled “Related”Avatar · Button · Icon · Text · Tooltip · VoiceWave · Image · ZoomableImage