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 React Message is a graphical user interface component that displays messages with visual severity levels. It differentiates messages with icons and colors to denote the importance and context of the message. It has several built-in features, such as severities, variants, icons, and a template.


Severities

Display messages with predefined severity types that have distinctive icons and colors to convey their importance to the user. The available severity types are normal, success, info, warning, and error.

React Message severity.


Variants

Message has predefined appearance variants for different visual representations of messages: text, outlined, and filled.

React Message variants.


Icons

Users tend to understand visual information better than text. Include severity icons to the left of the message content to provide a visual representation of the message urgency. Users may want to hide some messages once they’ve read them. Include a close icon to the right of the message content to hide it through user input.

React Message icons.


React Message content alignment.

Content alignment

Normally, message content is aligned to the left. Users can easily align it to the center or right using the built-in classes e-content-center and e-content-right.


UI customization with a template

A template is used to create custom user experiences. The Message component lets you customize the content with a custom structure. The content can be a string, paragraph, or any other HTML element.

React Message template.


React Message rounded square

Rounded and Square

The corners of the message box can be rounded or squared, by adding a custom class at the application level. Based on this custom class, users can override the message styles to make it round or square. The Message control with rounded corners will have a softer, smoother appearance, while the square corners will have a more React, defined look.


Accessibility

  • Fully supports WAI-ARIA accessibility practices to work with screen readers and assistive devices.
  • Follows WAI-ARIA best practices for implementing keyboard interaction.
  • Follows WCAG 2.0 standards, in design of the UI visual elements such as foreground color, background color, line spacing, text, and images.
  • Supports right-to-left (RTL) text direction for users working in right-to-left languages like Hebrew, Arabic, or Persian.

Developer-friendly APIs

Developers can control the appearance and behaviors of the Message using a rich set of APIs.

Built-in themes

The React Message supports several built-in themes: Material, Bootstrap, Fabric (Office 365), Tailwind CSS, and high contrast. Users can customize any one of these built-in themes or create new themes to achieve their own desired look and feel either by simply overriding SASS variables or using our Theme Studio application.


Other supported frameworks

The Message component is also available for our Blazor, Angular, Vue, and JavaScript frameworks. Check it out on the other platforms at these links:


React Message Code Example

Easily get started with the React Message using a few simple lines of TSX code example as demonstrated below. Also explore our React Message Example that shows you how to render and configure a Message in React.

import * as React from 'react';
import * as ReactDOM from 'react-dom';
import { SampleBase } from '../common/sample-base';
import { MessageComponent } from '@syncfusion/ej2-react-notifications';
import './default.css';

export class Default extends SampleBase<{}, {}> {
    render() {
        return (
            <div className='control-pane'>
                <div className="col-lg-12 control-section msg-default-section">
                    <div className="content-section">
                        <MessageComponent id="msg_default" content="Editing is restricted"></MessageComponent>
                        <MessageComponent id="msg_info" content="Please read the comments carefully" severity="Info"></MessageComponent>
                        <MessageComponent id="msg_success" content="Your message has been sent successfully" severity="Success"></MessageComponent>
                        <MessageComponent id="msg_warning" content="There was a problem with your network connection" severity="Warning"></MessageComponent>
                        <MessageComponent id="msg_error" content="A problem has been occurred while submitting your data" severity="Error"></MessageComponent>
                    </div>
                </div>
            </div>
        )
    }
}



85+ REACT UI COMPONENTS

Frequently Asked Questions

  • Built-in support for severity icons and predefined appearance variants that convey the importance of the messages.
  • An easily customizable UI.
  • One of the best React Message in the market that offers feature-rich UI to interact with the software.
  • Built-in support for access control.
  • Simple configuration and API.
  • Support for all modern browsers.
  • Touch-friendly and responsive UI.
  • Expansive learning resources such as demos and documentation to let you get started quickly with the React Message component.

We do not sell the React Message separately. It is only available for purchase as part of the Syncfusion team license. This contains over 1,800 components and frameworks, including the React Message. The price of the team license starts at $395 per month for 5 developers, and includes support and updates until the subscription expires. In addition, we might offer discounts based on currently active promotions. Please contact our product specialists today to see if you qualify for any additional discounts.

You can find our React Message demo, which demonstrates how to render and configure the Message.

No, our 1,800+ components and frameworks for web, mobile, and desktop, including our React Message, are not sold individually. They are only available as part of a team license. However, we have competitively priced the product, so it only costs a little bit more than what some other vendors charge for their Message component alone. We have also found that, in our experience, our customers usually start off using one of our products and then expand to several products quickly, so we felt it was best to offer all 1,800+ components and frameworks for a subscription fee that starts at $395 per month for a team of 5 developers. Additionally, we might be able to offer discounts based on currently active promotions. Please contact our product specialists today to see if you qualify for any additional discounts.

No, this is a commercial product and requires a paid license. However, a free community license is also available for companies and individuals whose organizations have less than $1 million USD in annual gross revenue, 5 or fewer developers, and 10 or fewer total employees.

A good place to start would be our comprehensive getting started documentation.

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