Call Panel
CRM · CallPanel, Panel
A call in progress, for a dialer or a softphone: who it is, the state and timer, mute, hold, record and end, notes and the outcome.
- Mute, hold and record are toggle buttons with fixed labels and
aria-pressed. - The timer counts from
startedAtand ticks every second; passnowfor a fixed render. state="ringing"withonAnswershows "Answer" instead of the call controls.
Lena HartmannHead of Operations · Nordhafen Outdoor+49 40 2287 1190
On call12:34
Tom BeckerIT lead · Nordhafen Outdoor+49 40 2287 1204
Ringing
Props
CallPanel
| Prop | Type | Notes |
|---|---|---|
name | string | Required |
subtitle? | ReactNode | "Head of Operations · Nordhafen". |
number? | string | |
state | "ringing" | "active" | "hold" | "ended" | Required |
startedAt? | Date | string | number | When the call was answered; the timer counts from here. |
now? | Date | string | number | Fixed "now" for the timer (server rendering, screenshots); ticks every second when unset. |
muted? | boolean | |
recording? | boolean | |
onAnswer? | () => void | |
onMute? | (muted: boolean) => void | |
onHold? | (hold: boolean) => void | |
onRecord? | (recording: boolean) => void | |
onEnd? | () => void | |
notes? | string | Shows a notes field. |
onNotes? | (text: string) => void | |
outcomes? | string[] | Shows an outcome picker ("Connected", "Voicemail" …). |
outcome? | string | |
onOutcome? | (outcome: string) => void | |
className? | string | Extra class on the root element. |
style? | CSSProperties | Inline style on the root element. |
Panel
| Prop | Type | Notes |
|---|---|---|
side? | boolean | |
title? | string | |
subtitle? | string | |
action? | ReactNode | |
children? | ReactNode | |
surface? | Surface | `"glass"`: translucent glass over what is behind (maps, 3D, video, photos); `"solid"` opts out inside a glass `UIProvider`. |
className? | string | Extra class on the root element. |
style? | CSSProperties | Inline style on the root element. |