We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy. Image for the cookie policy date
Syncfusion Feedback

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


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

Time break

The time break in the Chat UI automatically inserts breaks between messages based on the time, organizing conversations by date. This enhances readability by visually grouping messages, making it easier for users to follow the conversation.


Typing indicator

The typing indicator displays real-time updates when a user is typing a message. It enhances user interaction by signaling activity, creating a responsive and engaging chat experience.

Blazor Chat UI typing indicator


Blazor Chat UI header toolbar

Header toolbar

The header toolbar allows the addition of custom items to the header area, enabling actions like initiating a call, starting a new chat, or accessing chat settings. It offers extensive customization options, including adjusting toolbar item icons, text, alignment, and other settings to suit the needs.


On-demand messages loading

On-demand message loading allows messages to be loaded dynamically, improving performance and reducing load times, particularly in long conversations. This ensures a smooth user experience by only fetching messages as needed rather than loading the entire conversation at once.

Blazor Chat UI on-demand messages loading


Templates

Supports templates for customizing the empty conversation area, messages, typing indicator, and more. These templates allow users to create a unique, personalized chat experience that integrates seamlessly into their applications.

Empty chat template

The empty chat template allows customization of the chat interface when no messages are displayed. Personalized content, such as welcome messages or images can be added to create an engaging and inviting experience for users starting a conversation.

Blazor Chat UI empty chat template

Blazor Chat UI message template

Message template

The message template provides flexibility to customize the appearance and styling of each message. Modify text styling, layout, and other design elements to ensure a personalized chat experience.

Time break template

Customize how time breaks are displayed with the time break template, such as showing “today,” “yesterday,” or specific dates. This enhances conversation organization by clearly separating messages based on time, improving readability and user experience.

Blazor Chat UI timebreak template

Blazor Chat UI typingusers template

Typing indicator template

The typing indicator template customizes the display of users currently typing a message. It allows the styling and positioning of the typing indicator, enhancing the user experience.

Use the footer template to customize the default footer area and manage message send actions with a personalized design. This flexibility allows users to create unique footers that meet their specific needs.

Blazor Chat UI footer template


Built-in themes

The Blazor Chat UI supports these built-in themes: Tailwind CSS, Bootstrap 5, Bootstrap 4, Bootstrap, Material, Fabric, Fluent, and high contrast. Users can customize these built-in themes or create new themes to achieve their desired look and feel by overriding SASS variables or using the Theme Studio application.


Accessibility

  • Full support for WAI-ARIA accessibility practices for screen readers and assistive devices.
  • UI visual elements such as foreground color, background color, line spacing, text, and images are designed based on WCAG 2.0 standards.
  • Right-to-left (RTL) text direction can be set for users of RTL languages like Hebrew, Arabic, or Persian.

Developer-friendly APIs

The Blazor Chat UI component offers APIs and templates for customizing its appearance and behavior. With these APIs, developers can create a unique and highly customized Chat UI that fits seamlessly into their applications.


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 }
        };
    }
}

Struggling to decide on the right product?

Our comprehensive competitor comparison of Blazor components will guide you to the perfect choice.

tick-mark 85+ UI components
tick-mark 960+ interactive Blazor demos
tick-mark 2.3M+ downloads
competitive-banner-FT-image

Blazor Components – 85+ UI and DataViz Components

Our Customers Love Us

Having an excellent set of tools and a great support team, Syncfusion reduces customers’ development time.
Here are some of their experiences.

Rated by users across the globe

Transform your applications today by downloading our free evaluation version
Download Free Trial No credit card required.

Awards

Greatness—it’s one thing to say you have it, but it means more when others recognize it. Syncfusion is proud to hold the following industry awards.

Up arrow icon