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.
AIMCP Server and Agent Skills included
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.
Trusted by the world’s leading companies
Now easier with AI
Coding assistants write the Toast setup from the current docs, with the documented properties.
01For developers
The Syncfusion MCP server and Agent Skills give assistants in VS Code, Cursor, and JetBrains the current Toast docs and recommended patterns.
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
Open a demo to try each one, or the docs to see the API.
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.
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.
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 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.
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.
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.
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
With an AI coding assistant
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>
</>
);
}
Works withReact 15.5.4 or laterTypeScript and JavaScriptNext.jsRemixGatsbyVitePreactSystem requirements
Customer reviews
“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.
“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.
Customer story · Igniatek
“I would definitely recommend Syncfusion for anyone who is trying to develop something meaningful.”
Somnath Maji, Founder, Igniatek Consultancy
Including the 2026 Devies Award, Capterra Shortlist 2026, Software Advice FrontRunners 2026, and G2 Best Software 2025.
Complete feature list
Showing all 29 features. Each one opens its demo or documentation.
No feature matches that search. Try another word, or open the Toast demos.
Related notification components:React MessageReact Badge
Questions and answers
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
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
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
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
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
In nine predefined positions, at custom pixel or percentage coordinates, or inside a container set with target. Read about positions
Yes. Set timeOut to 0 and show the close button with showCloseButton. Read about timeouts
Yes. The buttons property adds action buttons with click handlers, and template renders any HTML or React content. Read about action buttons
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
Yes. It follows WCAG 2.2 with ARIA attributes for screen readers, respects reduced motion, and supports right-to-left layouts. Read about accessibility
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
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
Resources
Toast for other frameworks:AngularBlazorJavaScript
More React components:MessageProgress BarAll 140+ React components
Syncfusion React Toast
The full Toast, the MCP server, and Agent Skills, free for 30 days.