Skip to main content

rtk-chat-toggle

A button which toggles visibility of chat.

You need to pass the meeting object to it to see the unread messages count badge.

When clicked it emits a rtkStateUpdate event with the data:

{
activeSidebar: boolean;
sidebar: 'chat' | 'none';
}
<rtk-chat-toggle size="sm" class="rtk-el"></rtk-chat-toggle>
<rtk-chat-toggle size="lg" class="rtk-el"></rtk-chat-toggle>
<rtk-chat-toggle variant="horizontal" class="rtk-el"></rtk-chat-toggle>

<script>
const elements = document.getElementsByClassName('rtk-el');
for (const el of elements) {
el.meeting = meeting;
}
</script>

Props

iconPack

Icon pack

Default
defaultIconPack

meeting

Meeting object

size

Size

Type
"lg" | "md" | "sm" | "xl"

states

States object

Type
States

t

Language

Default
useLanguage()

variant

Variant

Default
'button'
Type
"button" | "horizontal"