Skip to content

rtk-chat-selector-ui

Last updated View as MarkdownAgent setup

Properties

Property Type Required Default Description
groups ChatGroup[] - Participants
iconPack IconPack1 defaultIconPack Icon pack
selectedGroupId string - Selected participant
selfUserId string - Self User ID
t RtkI18n useLanguage() Language
unreadCounts Record<string, number> - Unread counts

Usage Examples

Basic Usage

<rtk-chat-selector-ui></rtk-chat-selector-ui>

With Properties

<rtk-chat-selector-ui
 selectedGroupId="example"
 selfUserId="example">
</rtk-chat-selector-ui>
<script>
  const el = document.querySelector("rtk-chat-selector-ui");

  el.groups= [];
</script>

Was this helpful?