Speaker Chip

根据转录中的一个发言人键,显示带角色配色的头像缩写和发言人名称。

可用框架
  • Angular: 可用
  • Vue: 可用
  • React: 可用
  • React Native: 暂不可用

用法

MeOthersSpeaker 1Speaker 2
Ada ParkMeSpeaker 3

导入

ts
import {
  SoneSpeakerChipComponent,
} from "@surface-one/angular/speaker-chip";

API 参考

SoneSpeakerChipComponent组件

`<sone-speaker-chip>` — who is talking: initials in a tone-coloured avatar plus the speaker's name, both derived from one speaker key (`me`, `others`, `others-0`, `speaker-2`) with `speakerLabel()` / `speakerTone()`.

选择器
sone-speaker-chip
输入
名称类型 默认值
speaker

The speaker key; an unknown key is shown as it is.

string | nullnull
label

Replaces the derived name (a real participant name, say).

string | nullnull
sizeSpeakerChipSize"default"