Speaker Chip
Die Initialen einer sprechenden Person in einem Avatar in der Farbe ihrer Rolle und ihr Name, abgeleitet aus einem einzigen Sprecherschlüssel des Transkripts.
Verfügbar für
Angular: verfügbar Vue: verfügbar React: verfügbar React Native: noch nicht verfügbar
Verwendung
<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>Import
import {
SoneSpeakerChipComponent,
} from "@surface-one/angular/speaker-chip";API-Referenz
SoneSpeakerChipComponentKomponente
`<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()`.
| Name | Typ | Standard |
|---|---|---|
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" |