dyte-name-tag
A component which shows a participant's name.
<dyte-name-tag class="dyte-el"></dyte-meeting-title>
<dyte-name-tag class="dyte-el"></dyte-meeting-title>
<script>
const elements = document.getElementsByClassName('dyte-el');
for (const el of elements) {
el.participant = meeting.self;
el.meeting = meeting;
}
</script>
Props
participant
iconPack
isScreenShare
Whether it is used in a screen share view
Default
false
Type
boolean
maxLength
Maximum length of the name
Default
20
Type
number
meeting
Meeting object
Type
DyteClient
size
Size
Type
"lg" | "md" | "sm" | "xl"
t
variant
Name tag variant
Default
'default'
Type
"default" | "text"