This sample demonstrates the features of the Chat UI component, designed to simulate a real-time chat interface. It highlights customizable elements like headers, avatars, synchronized messaging update, and real-time typing indicators.
In this example, two Chat UI web components are used to represent users Albert and Reena, each with a unique header, avatar, and toolbar. Messages are instantly synchronized between the two users through the messageSend
event, while typing indicators are shown in the other chat interface via the userTyping
event, adding a more interactive feel.
This example demonstrates how to use the Chat UI component to display chat messages for multiple users. The chat interface allows switching between users' conversations, with bot responses triggered by user input. A header toolbar is included, and a splitter layout displays the chat alongside a list view for easy navigation.