Skip to content
Calm motion: animations on this site only fade, with no movement

Call screen ​

Video tiles for each person, with mute, camera, share, and hang up

The screen of a video call. The component draws the layout and the controls. Your app connects the call and gives the video of each person.

Basic
  • Ana Putri, speaking
  • Budi Santoso, muted
  • Citra Dewi
  • Dimas, muted
12:04
  • people is a list of people in the call. Each person has an id and a name. They can also have an avatar, muted, cameraOff, and speaking.
  • The video slot gets each person. Put a video element with their stream in it. If the camera of a person is off, or the slot is empty, the tile shows the avatar.
  • The person who speaks gets a ring and the word "speaking" after the name. A muted person gets a mark and the word "muted".
  • The grid has one column for one person, two columns for up to four, and three columns for more.
  • The buttons are toggles: v-model:muted, v-model:camera, and v-model:sharing. "Leave the call" emits leave. elapsed shows the time in the call, as text.
  • The screen stays dark in both themes, as video looks best on a dark ground.
  • Change the words with labels or a label pack: title, mute, camera, share, leave, muted, speaking, and controls.

Usage ​

ts
import { BlessCallScreen } from "blessing-ui";

API ​

Props

NameTypeDefaultDescription
people*BlessCallPerson[]—
elapsedstring—the time in the call, as text, for example "12:04"
labelsPartial<{ title: string; mute: string; camera: string; share: string; leave: string; muted: string; speaking: string; controls: string; }>—
mutedbooleanfalse
camerabooleantrue
sharingbooleanfalse

Events

NamePayloadDescription
update:muted[value: boolean]
update:camera[value: boolean]
update:sharing[value: boolean]
leave[]

Slots

NameScopeDescription
video{ person: BlessCallPerson; }

Released under the MIT License. Character names and artwork belong to their owners.