AIMCP Server and Agent Skills included

React Toast notifications, now easier to build with AI

Show short, nonblocking notifications that hide on their own, with four message types, nine positions, progress bars, action buttons, templates, and animations. AI assistants set it up for you from the current docs.

  • 4.5/5850+ G2 reviews
  • 4.6/5950+ Capterra reviews
  • WCAG 2.2and Section 508
  • 9predefined positions
  • 4message types

Trusted by the world’s leading companies

Syncfusion customers include Visa, Apple, McDonald’s, Netflix, Starbucks, IBM, Tesla, and Schneider Electric

Now easier with AI

Build notifications faster with AI

Coding assistants write the Toast setup from the current docs, with the documented properties.

01For developers

Describe a notification and get code that uses the documented API

The Syncfusion MCP server and Agent Skills give assistants in VS Code, Cursor, and JetBrains the current Toast docs and recommended patterns.

See all 28 features

AI coding assistantMCP · Syncfusion React

Show a toast when the report finishes exporting.

search_docs“React Toast show a toast” · 2 doc sections

+const toast = useRef<ToastComponent>(null);

+<ToastComponent ref={toast} />

+toast.current?.show({ title: 'Report exported', content: 'Q4-report.pdf is ready.' });

Documented API: show, title, content

ResultRendered in your app

AI coding assistantMCP · Syncfusion React

Show a red error toast when the upload fails.

search_docs“React Toast message types” · 2 doc sections

+toast.current?.show({ title: 'Upload failed', content: 'Try again.',

+ cssClass: 'e-toast-danger' });

+ToastUtility.show('Your changes are saved.', 'Success',

+ 5000);

Documented API: cssClass, e-toast-danger, ToastUtility.show

ResultRendered in your app

AI coding assistantMCP · Syncfusion React

Show toasts at the bottom right of the page.

search_docs“React Toast positions and targets” · 2 doc sections

+<ToastComponent ref={toast}

+ position={{ X: 'Right', Y: 'Bottom' }}

+ newestOnTop={true} />

Documented API: position, newestOnTop, target

ResultRendered in your app

AI coding assistantMCP · Syncfusion React

Hide toasts after 8 seconds and show a progress bar.

search_docs“React Toast timeout and progress bar” · 2 doc sections

+<ToastComponent ref={toast} timeOut={8000}

+ extendedTimeout={2000}

+showProgressBar={true} progressDirection="Ltr"

+ showCloseButton={true} />

Documented API: timeOut, extendedTimeout, showProgressBar, showCloseButton

ResultRendered in your app

AI coding assistantMCP · Syncfusion React

Add Accept and Decline buttons to the meeting invite toast.

search_docs“React Toast action buttons and templates” · 2 doc sections

+<ToastComponent ref={toast} timeOut={0} buttons={[

+ { model: { content: 'Accept' }, click: accept },

+ { model: { content: 'Decline' }, click: decline }]} />

Documented API: buttons, template

ResultRendered in your app

AI coding assistantMCP · Syncfusion React

Do not show the same toast twice, and show at most three at once.

search_docs“React Toast duplicates and limits” · 2 doc sections

+<ToastComponent ref={toast} beforeOpen={onBeforeOpen} />

+const onBeforeOpen = (args: ToastBeforeOpenArgs) => {

+if

+ (openTitles.includes(args.options.title) || openTitles.length >= 3)

+ args.cancel = true;

+};

Documented API: beforeOpen, cancel, options

ResultRendered in your app

AI coding assistantMCP · Syncfusion React

Slide toasts in from the right and out to the left.

search_docs“React Toast show and hide animations” · 2 doc sections

+<ToastComponent ref={toast} animation={{

+ show: { effect: 'SlideRightIn', duration: 600 },

+ hide: { effect: 'SlideLeftOut', duration: 600 } }} />

Documented API: animation, show, hide, effect

ResultRendered in your app

AI coding assistantMCP · Syncfusion React

Close the toast when users tap it, but not when they swipe it.

search_docs“React Toast close on click or swipe” · 2 doc sections

+<ToastComponent ref={toast} timeOut={0}

+ click={(args) => { args.clickToClose = true; }}

+beforeClose={(args) => { if (args.type === 'swipe') args.cancel = true; }} />

Documented API: click, clickToClose, beforeClose, timeOut

ResultRendered in your app

Features in depth

React Toast features in depth

Open a demo to try each one, or the docs to see the API.

Toast message types: success, info, warning, and error

Apply the e-toast-success, e-toast-info, e-toast-warning, or e-toast-danger class through cssClass. ToastUtility.show displays a styled toast in one call, without a component instance.

Visual elements and templates

Show a title, content, and an icon, or render any HTML and React content through a template, and change it while the toast is open.

Interactive toasts with action buttons

The buttons property adds buttons with click handlers, so users can reply, undo, or approve without leaving the page.

Toast position and target container

Place toasts at the top, bottom, left, right, or center of the page with the position property, or set pixel and percentage coordinates. The target property shows toasts inside a container.

Timeout and progress bar

timeOut sets how long a toast stays, 5,000 milliseconds by default, and 0 keeps it open. extendedTimeout adds time after users interact, and a progress bar shows the time left.

Animation

Configure the show and hide effects and their durations through the animation property. Toasts fade in and out by default.

Multiple toasts, stacking, and duplicates

Show several toasts in a queue, put the newest on top with newestOnTop, and use the beforeOpen event to block duplicates or limit how many appear.

Dismiss by close button, click, swipe, or timeout

Users close toasts with a close button, a click or tap, or a swipe on mobile. The beforeClose event can stop a swipe from closing critical toasts.

Accessible, styled, and themed

Toasts follow WCAG 2.2 with ARIA attributes, respect reduced motion, and support right-to-left layouts. Restyle the fill, border, and opacity, or brand the themes in Theme Studio.

Get started

Get your first toast running, with or without AI

With an AI coding assistant

  1. Connect the Syncfusion MCP serverWorks in VS Code, Cursor, JetBrains, and other MCP-compatible assistants.Set up the MCP server
  2. Add Agent Skills to your projectYour agent follows Syncfusion’s recommended Toast patterns.Install Agent Skills
  3. Describe the toastCopy this prompt to start.

    Add a Syncfusion React Toast to my dashboard that shows success and error notifications at the top right, with a progress bar, auto-hide after five seconds, and a close button.

By hand, in three steps

1 · Install

npm install @syncfusion/ej2-react-notifications @syncfusion/ej2-tailwind3-theme --save

2 · src/App.css

@import '../node_modules/@syncfusion/ej2-tailwind3-theme/styles/toast/index.css';

3 · src/App.tsx

import { useRef } from 'react';
import { ToastComponent } from '@syncfusion/ej2-react-notifications';
import './App.css';

export default function App() {
  const toast = useRef<ToastComponent>(null);
  return (
    <>
      <ToastComponent ref={toast} position={{ X: 'Right', Y: 'Top' }} timeOut={5000} showProgressBar={true} />
      <button onClick={() => toast.current?.show({ title: 'Saved', content: 'Your changes are saved.' })}>Save</button>
    </>
  );
}
Read the getting started guide

Works withReact 15.5.4 or laterTypeScript and JavaScriptNext.jsRemixGatsbyVitePreactSystem requirements

Customer reviews

Trusted by developers and teams

G2

4.5/5

From 850+ reviews of Essential Studio®

Read the reviews on G2

“Awesome, enough said”

Easy usability, solving real-life problems, easy to implement. Most of the cases have the operators and settings possibilities you need right away.

Oliver O.Creative and Art Direction, Small Business

“A giant framework with great pricing options”

I have loved the components and options that Syncfusion has; besides, its documentation, demos, and support are excellent.

Alejandro Javier V.CEO, Small Business
75%
lower costs
50%
faster development

Customer story · Igniatek

Igniatek cuts development time 50% and costs 75% with Essential Studio®

“I would definitely recommend Syncfusion for anyone who is trying to develop something meaningful.”

Somnath Maji, Founder, Igniatek Consultancy

Award-winning

Including the 2026 Devies Award, Capterra Shortlist 2026, Software Advice FrontRunners 2026, and G2 Best Software 2025.

Recent industry awards won by Syncfusion

Complete feature list

Every toast feature, included in the license

  • Every feature includedNo separate enterprise edition
  • Royalty-freeNo runtime or deployment fees
  • Weekly patchesPlus regular feature releases
  • Expert supportFrom Syncfusion engineers

Related notification components:React MessageReact Badge

Questions and answers

React Toast FAQ

What is the React Toast?

The Syncfusion React Toast is a small, nonblocking notification that appears over the page and hides on its own after a few seconds. Use it to confirm actions, such as a saved file. Explore the demos

How is a toast different from a message or a dialog?

A toast pops up over the page and hides on its own. A message stays inside the page content, and a dialog asks users to respond before they continue. React Message

How do I add a toast in React?

Install @syncfusion/ej2-react-notifications and the Tailwind 3 theme, render ToastComponent with a ref, and call show() with a title and content. Read the getting started guide

Can I show a toast without adding a component?

Yes. ToastUtility.show() displays a toast with content, a type such as Success or Warning, and a timeout in one call. Read about the toast utility

Which message types are built in?

Success, info, warning, and error, applied with the e-toast-success, e-toast-info, e-toast-warning, and e-toast-danger classes. Toast types demo

Where can toasts appear?

In nine predefined positions, at custom pixel or percentage coordinates, or inside a container set with target. Read about positions

Can a toast stay until users close it?

Yes. Set timeOut to 0 and show the close button with showCloseButton. Read about timeouts

Can I add buttons or custom content to a toast?

Yes. The buttons property adds action buttons with click handlers, and template renders any HTML or React content. Read about action buttons

How do I stop duplicate or too many toasts?

Handle the beforeOpen event and set cancel to true when a matching toast is already open or the limit is reached. Read how to prevent duplicates

Is the React Toast accessible?

Yes. It follows WCAG 2.2 with ARIA attributes for screen readers, respects reduced motion, and supports right-to-left layouts. Read about accessibility

Can AI coding assistants build with the React Toast?

Yes. The Syncfusion MCP server and Agent Skills give assistants in VS Code, Cursor, and JetBrains the current Toast docs and recommended patterns. You need a Syncfusion API key and an active license, which can be a commercial, Community, or trial license. Set up the MCP server

Is the Syncfusion React Toast free?

It is a commercial component with a 30-day free trial. A free Community License is available for companies and individuals with less than $1 million USD in annual gross revenue, five or fewer developers, and 10 or fewer total employees. Check Community License eligibility

Syncfusion React Toast

Build your React notifications faster with AI

The full Toast, the MCP server, and Agent Skills, free for 30 days.

  • No credit card required
  • Free Community License for eligible teams
  • No runtime or deployment fees