# Call 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.

Component · CRM · Halo kit · [Live page](https://ui.twentyfirst.media/halo/components/CallPanel/)

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 `startedAt` and ticks every second; pass `now` for a fixed render.
- `state="ringing"` with `onAnswer` shows "Answer" instead of the call controls.

## Example

```tsx
import * as React from "react";
import { CallPanel, Panel } from "@twentyfirstmedia/halo";

const NOW = new Date(2026, 10, 16, 9, 30);

export default function Preview() {
  const [muted, setMuted] = React.useState(false);
  const [hold, setHold] = React.useState(false);
  const [recording, setRecording] = React.useState(true);
  const [notes, setNotes] = React.useState(
    "Budget approved. Wants two references from outdoor retail.",
  );
  const [outcome, setOutcome] = React.useState("Connected");
  return (
    <div
      className="tf-grid"
      style={{ "--cols": "repeat(auto-fit, minmax(300px, 1fr))", gap: 16 } as React.CSSProperties}
    >
      <Panel>
        <CallPanel
          name="Lena Hartmann"
          subtitle="Head of Operations · Nordhafen Outdoor"
          number="+49 40 2287 1190"
          state={hold ? "hold" : "active"}
          startedAt={new Date(NOW.getTime() - 754000)}
          now={NOW}
          muted={muted}
          recording={recording}
          onMute={setMuted}
          onHold={setHold}
          onRecord={setRecording}
          onEnd={() => {}}
          notes={notes}
          onNotes={setNotes}
          outcomes={["Connected", "Voicemail", "No answer", "Wrong number"]}
          outcome={outcome}
          onOutcome={setOutcome}
        />
      </Panel>
      <Panel>
        <CallPanel
          name="Tom Becker"
          subtitle="IT lead · Nordhafen Outdoor"
          number="+49 40 2287 1204"
          state="ringing"
          onAnswer={() => {}}
          onEnd={() => {}}
        />
      </Panel>
    </div>
  );
}
```

## 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. |
