Skip to content
ProLifetime access for $199, paid once, every future release included
Truffle UI

Live Call Card

ProNew

A call in progress: who is on the line, a steady timer, bars that move for whoever is speaking, and controls to mute, hold, transfer and end.

Installation

pnpm dlx shadcn@latest add @viewport/live-call-card

First time? Add the @viewport registry to components.json. Setup takes one minute.

Usage

The code behind the preview above comes with Truffle Pro.

Props

PropTypeDefault
caller*string

Who is on the line.

—
detailstring

A second line, e.g. the number or what the call is about.

—
agent*string

The agent handling the call.

—
status*"ringing" | "live" | "hold" | "ended"—
speaking"agent" | "caller" | null

Who is speaking now. Their bars move; the other side's rest.

null
startedAtnumber

When the call was answered, as a timestamp in milliseconds. The timer counts from it.

—
mutedbooleanfalse
onMuteChange(muted: boolean) => void—
onHoldChange(held: boolean) => void—
onTransfer() => void—
onEnd() => void—
classNamestring—

Accessibility

  • Status is a word and a dot; it is announced when it changes.
  • Controls are a named toolbar; toggles report aria-pressed.
  • Controls that do not apply are disabled, not removed, so nothing shifts.
  • Bars rest and the status ring is still under reduced motion.