Speaker Chip
Les initiales d’un intervenant dans un avatar à la couleur de son rôle et son nom, tirés d’une seule clé d’intervenant de la transcription.
Disponible pour
Angular: disponible Vue: disponible React: disponible React Native: pas encore disponible
Utilisation
<div class="demo-stack">
<div class="demo-row" style="align-items: center">
<sone-speaker-chip speaker="me" />
<sone-speaker-chip speaker="others" />
<sone-speaker-chip speaker="others-0" />
<sone-speaker-chip speaker="others-1" />
</div>
<div class="demo-row" style="align-items: center">
<sone-speaker-chip speaker="others-0" label="Ada Park" />
<sone-speaker-chip speaker="me" size="sm" />
<sone-speaker-chip speaker="speaker-3" size="sm" />
</div>
</div>Importation
import {
SoneSpeakerChipComponent,
} from "@surface-one/angular/speaker-chip";Référence de l’API
SoneSpeakerChipComponentComposant
`<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()`.
| Nom | Type | Par défaut |
|---|---|---|
speakerThe speaker key; an unknown key is shown as it is. | string | null | null |
labelReplaces the derived name (a real participant name, say). | string | null | null |
size | SpeakerChipSize | "default" |