Trusted by the world’s leading companies

Syncfusion Trusted Companies

Overview

The Blazor Chat UI is a lightweight and highly customizable component designed for creating modern chat interfaces. It displays conversations between two or more users, offering powerful features like real-time typing indicators, on-demand message loading, message suggestions, and a great user experience.

Blazor Chat UI component.


Blazor Chat UI Code Example

Easily get started with the Blazor Chat UI using a few simple lines of C# code example, as demonstrated below. Also, explore our Blazor Chat UI Example, which shows how to render and configure the Blazor Chat UI.

@using Syncfusion.Blazor.InteractiveChat

<SfChatUI User="@Customer" HeaderText="LiveAssist" Messages="@ChatMessages" Width="400px" Height="500px">
</SfChatUI>

@code {

    UserModel Customer;
    UserModel SupportAgent;
    List<ChatMessage> ChatMessages;

    protected override void OnInitialized()
    {
        Customer = new UserModel()
        {
            ID = "user-1001",
            User = "Richard Rose"
        };

        SupportAgent = new UserModel()
        {
            ID = "agent-1001",
            User = "Donald Krish"
        };

        ChatMessages = new List<ChatMessage>()
        {
            new ChatMessage() { Text = "Hi, I need help with my order.", Timestamp = new DateTime(2024, 12, 11, 9, 0, 0), Author = Customer },
            new ChatMessage() { Text = "Sure, could you provide your order ID?", Timestamp = new DateTime(2024, 12, 11, 9, 1, 0), Author = SupportAgent },
            new ChatMessage() { Text = "My order ID is #12345.", Timestamp = new DateTime(2024, 12, 11, 9, 2, 0), Author = Customer },
            new ChatMessage() { Text = "Thank you. Let me check the details for you.", Timestamp = new DateTime(2024, 12, 11, 9, 3, 0), Author = SupportAgent },
            new ChatMessage() { Text = "I found it! Your package was delivered yesterday at 3 PM.", Timestamp = new DateTime(2024, 12, 11, 9, 4, 0), Author = SupportAgent },
            new ChatMessage() { Text = "Oh, I didn’t notice it. Let me check.", Timestamp = new DateTime(2024, 12, 11, 9, 5, 0), Author = Customer },
            new ChatMessage() { Text = "Found it behind the planter. Thanks for your help!", Timestamp = new DateTime(2024, 12, 11, 9, 6, 0), Author = Customer }
        };
    }
}

AI-assisted development

Build feature-rich Blazor Chat UI experiences faster

Accelerate messaging interface development with Syncfusion AI tools that turn requirements into fully configured chat experiences with minimal setup.

Sf Agentic Ui Builder image

Agentic UI Builder

Turn prompts into ready-to-use UI screens, layouts, and workflows with Syncfusion Blazor components.

Example Prompt Create a team messaging interface with reactions, typing indicators, and grouped conversations.

Explore Agentic UI Builder

Sf Agent Skills image

Agent Skills

Accelerate development with Syncfusion AI Agent Skills for faster implementation and integration.

Example Prompt Generate a Blazor chat UI with grouped messages, timestamps, and typing indicators.

Explore Agent Skills

Sf Ai Coding Assistant image

AI Coding Assistant

Accelerate development with AI that generates, configures, and troubleshoots component code directly in your IDE.

Example Prompt Show how to dynamically load chat history in the Syncfusion Blazor Chat UI.

Explore AI Coding Assistant


Messages

The Chat UI supports binding data from real-time data streaming services, enabling seamless updates to the chat interface. It supports user avatars and timestamps, with current user messages aligned to the right for clarity. If an avatar image is not provided, fallback text is displayed using the initials of the user’s first and last name.

Blazor Chat UI messages.


Blazor Chat UI message status.

Message status

To enhance communication, the Chat UI allows setting a status for each message. You can also define custom statuses, such as sent, delivered, and read, along with corresponding icons and tooltips.


Suggestions

The Chat UI offers dynamic message suggestions to enhance user engagement and streamline conversations. Customizable suggestions, such as quick replies or predefined templates allow users to respond and take action within the chat.

Blazor Chat UI suggestions.


Blazor Chat UI timebreak.