syncfusion-react-notifications
Comprehensive guide for implementing Syncfusion React Notification components including Badge, Message, Skeleton, Toast, and Spinner. Use this when applying status indicators and badges with color variants and shapes; showing informational, success, warning, or error messages; configuring severity levels and display variants (Text, Outlined, Filled); handling message dismissal; toast positioning, toast templates, toast animations; displaying skeleton loading placeholders with shimmer animations (Wave, Pulse, Fade) and shapes (Circle, Rectangle, Text); or customizing notification appearance and accessibility.
What this skill does
# Implementing Syncfusion React Notifications ## Toast The Syncfusion React Toast component displays brief, non-intrusive notifications that auto-dismiss after a configurable timeout. Toasts support rich content through templates, action buttons, animated entry/exit, precise positioning, and programmatic control via `ToastUtility`. > π **Agentic use:** Do not execute multiple steps autonomously. Confirm with the user before each action (install, run, file creation). ### Package and Setup π **Read:** [references/getting-started.md](references/toast-getting-started.md) - Installing `@syncfusion/ej2-react-notifications` π *STOP β Do not install packages autonomously. Ask the user to run: `npm install @syncfusion/[email protected] --save`. Verify with `npm audit`* - CSS imports for all required themes - Basic `ToastComponent` usage (class and functional patterns) - Rendering toast in a custom target container - Triggering show in the `created` event ### Documentation and Navigation Guide #### Configuration and Layout π **Read:** [references/configuration.md](references/toast-configuration.md) - Setting `title` and `content` (plain text, HTML, elements) - Custom `target` container for scoped notifications - `showCloseButton` for manual dismissal - `showProgressBar` and `progressDirection` (Ltr / Rtl) - `newestOnTop` stacking order - `width` and `height` dimensions (px, %, auto) #### Positioning π **Read:** [references/position.md](references/toast-position.md) - Nine predefined X/Y positions (Left, Center, Right / Top, Bottom) - Custom pixel and percentage coordinates - Targeting a container element for relative positioning - Multiple Toast instances at different screen positions #### Timeout and Dismissal π **Read:** [references/timeout-and-dismissal.md](references/toast-timeout-and-dismissal.md) - `timeOut` property (default 5000 ms) - `extendedTimeout` on hover (default 1000 ms) - Static persistent toasts with `timeOut: 0` - Click-to-close via `clickToClose` in the `click` event - Preventing mobile swipe dismissal with `beforeClose` #### Templates and Styling π **Read:** [references/templates-and-styling.md](references/toast-templates-and-styling.md) - `template` property with HTML strings and DOM selectors - Dynamic templates passed at `show()` call time - Semantic CSS classes: `e-toast-success`, `e-toast-info`, `e-toast-warning`, `e-toast-danger` - CSS selectors for title, content, icon, and background customization #### Animation π **Read:** [references/animation.md](references/toast-animation.md) - `animation` property with `show` and `hide` effect settings - Available effects: FadeIn, FadeZoomIn, SlideBottomIn, ZoomIn, FlipLeftUpIn, and more - Default: FadeIn / FadeOut - Accessibility: reduced-motion considerations #### Toast Services and Advanced Patterns π **Read:** [references/toast-services.md](references/toast-services.md) - `ToastUtility.show()` for quick toasts without component instantiation - Four predefined types: `Information`, `Success`, `Error`, `Warning` - Passing a full `ToastModel` to `ToastUtility.show()` - Playing audio on `beforeOpen` - Restricting maximum simultaneous toasts with `beforeOpen` - Preventing duplicate toasts using `beforeOpen` + `close` #### Accessibility π **Read:** [references/accessibility.md](references/toast-accessibility.md) - WAI-ARIA: `role="alert"`, `aria-live="assertive"`, `aria-label` - WCAG 2.2, Section 508, ADA compliance - Screen reader support (JAWS, NVDA, VoiceOver) - RTL support via `enableRtl` - Mobile and accessibility checker validation #### API Reference π **Read:** [references/api.md](references/toast-api.md) - All properties with types, defaults, and descriptions - `show()` and `hide()` method signatures - All events: `beforeOpen`, `open`, `click`, `beforeClose`, `close`, `created`, `destroyed`, `beforeSanitizeHtml` ### Quick Start Example > π *STOP β Do not start the dev server autonomously. Ask the user to run: `npm run dev` after setup.* ```tsx import { ToastComponent } from '@syncfusion/ej2-react-notifications'; import '@syncfusion/ej2-base/styles/tailwind3.css'; import '@syncfusion/ej2-react-notifications/styles/tailwind3.css'; import { useRef } from 'react'; function App() { const toastRef = useRef<ToastComponent>(null); return ( <> <button onClick={() => toastRef.current?.show()}>Show Toast</button> <ToastComponent ref={toastRef} title="Success!" content="Your changes have been saved." cssClass="e-toast-success" position={{ X: 'Right', Y: 'Bottom' }} timeOut={4000} showProgressBar={true} showCloseButton={true} /> </> ); } ``` ### Quick Utility Toast (No Component Needed) ```tsx import { ToastUtility } from '@syncfusion/ej2-react-notifications'; // Show a success toast instantly ToastUtility.show('File saved successfully', 'Success', 3000); // Show an error toast ToastUtility.show('Connection failed', 'Error', 5000); ``` ### Common Patterns #### Semantic type toasts Use `cssClass` with `e-toast-success`, `e-toast-info`, `e-toast-warning`, `e-toast-danger` for visual differentiation β see [references/templates-and-styling.md](references/toast-templates-and-styling.md). #### Static/persistent toasts Set `timeOut: 0` with `showCloseButton: true` for notifications users must explicitly dismiss β see [references/timeout-and-dismissal.md](references/toast-timeout-and-dismissal.md). #### Action-required toasts Use the `buttons` property to add Ignore/Confirm/Undo buttons β see [references/configuration.md](references/toast-configuration.md). #### Prevent duplicates Use the `beforeOpen` event to cancel duplicate toasts already on screen β see [references/toast-services.md](references/toast-services.md). #### Limit max visible toasts Cap simultaneous toasts at N using `beforeOpen` and `element.childElementCount` β see [references/toast-services.md](references/toast-services.md). ## Message The Syncfusion `MessageComponent` displays contextual messages with visual severity indicatorsβicons and colorsβto communicate importance and context to end users. It supports five severity levels, three visual variants, close-icon dismissal, custom templates, and full accessibility compliance. > π **Agentic use:** Do not execute multiple steps autonomously. Confirm with the user before each action (install, run, file creation). ### Navigation Guide #### Getting Started π **Read:** [references/message-getting-started.md](references/message-getting-started.md) - Installation of `@syncfusion/ej2-react-notifications` π *STOP β Do not install packages autonomously. Ask the user to run: `npm install @syncfusion/[email protected] --save`. Verify with `npm audit`* - CSS imports and theme configuration - Rendering the first `MessageComponent` - Content via `content` prop or JSX children - Running the Vite development server #### Severity Levels π **Read:** [references/message-severities.md](references/message-severities.md) - Five severity levels: Normal, Success, Info, Warning, Error - `severity` prop usage and valid values - Visual distinctions (icons and colors per severity) - Choosing the right severity for your use case #### Display Variants π **Read:** [references/message-variants.md](references/message-variants.md) - Three variants: Text (default), Outlined, Filled - `variant` prop usage - Combining variant with severity - Visual trade-offs and when to use each #### Icons and Close Icon π **Read:** [references/message-icons-and-close.md](references/message-icons-and-close.md) - Severity icon visibility: `showIcon` prop (default `true`) - Disabling severity icons - Custom severity icons via `cssClass` CSS overrides - Close icon: `showCloseIcon` prop (default `false`) - `closed` event handler for dismiss callbacks - Toggling visibility with the `visible` prop #### Customization and Templates π **Read:** [references/me
Related in Web Dev
generating-lwc-components
IncludedLightning Web Components with PICKLES methodology and 165-point scoring. Use this skill when the user creates or edits LWC components, builds wire service patterns, or writes Jest tests for LWC. TRIGGER when: user creates/edits LWC components, touches lwc/**/*.js, .html, .css, .js-meta.xml files, or asks about wire service, SLDS, or Jest LWC tests. DO NOT TRIGGER when: Apex classes (use generating-apex), Aura components, or Visualforce.
tanstack-query
IncludedManage server state in React with TanStack Query v5. Set up queries with useQuery, mutations with useMutation, configure QueryClient caching strategies, implement optimistic updates, and handle infinite scroll with useInfiniteQuery. Use when: setting up data fetching in React projects, migrating from v4 to v5, or fixing object syntax required errors, query callbacks removed issues, cacheTime renamed to gcTime, isPending vs isLoading confusion, keepPreviousData removed problems.
document-processor-api
IncludedProcess documents with Nutrient DWS. Use when the user wants to generate PDFs from HTML or URLs, convert Office/images/PDFs, assemble or split packets, OCR scans, extract text/tables/key-value pairs, redact PII, watermark, sign, fill forms, optimize PDFs, or produce compliance outputs like PDF/A or PDF/UA. Triggers include convert to PDF, merge these PDFs, OCR this scan, extract tables, redact PII, sign this PDF, make this PDF/A, or linearize for web delivery.
nutrient-document-processing
IncludedProcess documents with Nutrient DWS. Use when the user wants to generate PDFs from HTML or URLs, convert Office/images/PDFs, assemble or split packets, OCR scans, extract text/tables/key-value pairs, redact PII, watermark, sign, fill forms, optimize PDFs, or produce compliance outputs like PDF/A or PDF/UA. Triggers include convert to PDF, merge these PDFs, OCR this scan, extract tables, redact PII, sign this PDF, make this PDF/A, or linearize for web delivery.
tanstack-query
IncludedManage server state in React with TanStack Query v5. Covers useMutationState, simplified optimistic updates, throwOnError, network mode (offline/PWA), and infiniteQueryOptions. Use when setting up data fetching, fixing v4βv5 migration errors (object syntax, gcTime, isPending, keepPreviousData), or debugging SSR/hydration issues with streaming server components.
accelint-nextjs-best-practices
IncludedNext.js performance optimization and best practices. Use when writing Next.js code (App Router or Pages Router); implementing Server Components, Server Actions, or API routes; optimizing RSC serialization, data fetching, or server-side rendering; reviewing Next.js code for performance issues; fixing authentication in Server Actions; or implementing Suspense boundaries, parallel data fetching, or request deduplication.