Token导航 LogoToken导航

Agent Skill · 前端设计

syncfusion-react-notifications(syncfusion React notifications 前端)

用于辅助前端页面、组件、样式和交互逻辑的开发与维护。它适合让 Agent 生成或审查 React、Next.js、Vue、Tailwind、CSS 等相关代码,整理组件结构,或定位布局和性能问题。使用时需要结合项目现有设计系统、路由和构建方式,避免只生成孤立片段;涉及页面改动时,应配合本地预览和构建检查确认视觉效果。

syncfusion-react-notifications 是前端设计类 Agent Skill,可用宿主为 Codex、Claude、Cursor、Gemini CLI,通过GitHub 仓库获取,权限为需要联网;许可证信息还不明确,第三方扫描已通过,按安装量在前端设计类的 10,216 个 Skill 里排第 5,300。

总安装 699周安装 28GitHub Stars 1下载 226核验 2026-05-01

安装说明

本站只整理中文说明,不托管安装包,也不代用户安装。
GitHub
许可证
unknown

安装方式

通过对话安装

复制提示词发给支持本地命令或 Skills 的 AI 助手,先确认命令和权限,再让它执行。

请帮我安装这个 Agent Skill:syncfusion-react-notifications(syncfusion React notifications 前端)
来源仓库:https://github.com/syncfusion/react-ui-components-skills
仓库路径:skills/syncfusion-react-notifications
安装命令:
npx skills add https://github.com/syncfusion/react-ui-components-skills --skill syncfusion-react-notifications
安装前请先检查当前环境是否支持对应 CLI,并向我确认将要执行的命令、安装目录、联网范围和文件读写权限;确认后再执行。

命令行安装

复制命令到本机终端执行。该命令会通过 npx skills 从第三方来源获取 Skill;本站只展示命令,不托管安装包,也不自动执行。

skills.shnpx skills
npx skills add https://github.com/syncfusion/react-ui-components-skills --skill syncfusion-react-notifications

这个 Skill 是做什么的

前端设计类 Skill 关注页面结构、视觉规范和组件写法,输出通常是可运行的界面代码。

用于辅助 React 前端页面、组件、样式和交互逻辑的开发与维护。适合生成或审查 React、Next.js、Vue、Tailwind、CSS 等相关代码,整理组件结构,或定位布局和性能问题。使用时需要结合项目现有设计系统、路由和构建方式,避免只生成孤立片段;涉及页面改动时,应配合本地预览和构建检查确认视觉效果。

通过 GitHub 安装,支持 Codex、Claude、Cursor、Gemini CLI 等宿主环境。需确保项目已集成 Syncfusion React 组件库,否则可能无法正常运行相关功能。

来源仓库内路径:skills/syncfusion-react-notifications

上手步骤

4 步
  1. 1

    确认自己的宿主工具

    公开资料标注支持 Codex、Claude、Cursor、Gemini CLI;先确认自己用的是其中之一,再按对应工具的 Skills 目录放置。

  2. 2

    拿到安装命令

    可以直接复制的命令是 npx skills add https://github.com/syncfusion/react-ui-components-skills --skill…;命令里的占位符换成自己的路径或密钥再执行。

  3. 3

    安装后重启宿主

    命令执行完要完全退出宿主工具再打开,让新装的 Skill 被重新扫描到,否则列表里可能看不到。

  4. 4

    按最小权限试用

    它需要需要联网,先在测试目录或测试账号里跑,确认没问题再放到正式项目。

常见问题

6 条

syncfusion-react-notifications 怎么安装?

在终端执行 npx skills add https://github.com/syncfusion/react-ui-components-skills --skill syncfusion…。装完完全退出宿主工具再打开,让它重新扫描本地 Skill。

syncfusion-react-notifications 支持哪些 AI 工具?

公开资料标注支持 Codex、Claude、Cursor、Gemini CLI。其他工具只要能读取本地 Skill 目录,一般也能手动放进去,但要自己确认触发方式是否一致。

syncfusion-react-notifications 需要什么权限?

权限级别是需要联网。该 Skill 可能需要联网访问来源站点、仓库或外部 API;具体网络访问范围需要结合源码和 README 复核。

syncfusion-react-notifications 是免费的吗?

公开资料没有标注明确许可证,收费和商用限制都无法确认。正式使用前请到来源仓库核对授权说明。

syncfusion-react-notifications 用的人多吗?

公开数据是累计安装 699 次,近一周安装 28 次,下载 226 次,GitHub 1 星。这些数字来自第三方目录统计,只能当作热度参考,不代表质量或安全性。

syncfusion-react-notifications 安全吗?

第三方扫描结果为通过,但这只覆盖已知的静态检查项,不能替代自己读一遍源码和安装命令。

值得选的地方和要先想清楚的地方

值得选的地方

  • 同时适配 4 种工具,换客户端不用重新找替代品。
  • 第三方扫描已通过,常见的高风险行为没有命中。

先想清楚的地方

  • 许可证没有明确标注,能不能商用、能不能再分发都不确定。
  • 第三方目录整理,版本更新和行为细节以来源仓库为准。

适不适合你

更适合

  • 已经在用 Codex,想直接扩展它能力的人。
  • 需要处理前端设计类任务、又不想每次都手写提示词的人。

不太适合

  • 需要明确授权才能用到公司项目里的场景。
  • 需要厂商级技术支持和 SLA 的生产系统。

前端设计类 Skill 对比

6 个同类
Skill总安装GitHub 星权限许可证扫描
frontend-design

前端设计 · Codex、Claude

8,823,360126,072只读MIT通过
vercel-composition-patterns

Vercel 组合模式 · Codex、Claude

3,858,81625,893需要联网MIT通过
vercel-react-native-skills

Vercel React native skills 前端 · Codex、Claude

2,468,66425,878只读MIT通过
adapt

adapt 搜索 · Codex、Claude

2,027,04023,125操作浏览器未明确通过
bolder

bolder 分析 · Codex、Claude

2,004,28823,130只读未明确通过
syncfusion-react-notifications

syncfusion React notifications 前端 · 本页

6991需要联网未明确通过

按安装量取同分类前几名;数字来自第三方目录统计,只作热度参考,不代表质量结论。

SKILL.md 原文

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.

Package and Setup

📄 Read: references/getting-started.md

  • Installing @syncfusion/ej2-react-notifications
  • 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

  • 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

  • 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

  • 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

  • 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

  • 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

  • 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

  • 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

  • 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

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)

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.

Static/persistent toasts

Set timeOut: 0 with showCloseButton: true for notifications users must explicitly dismiss — see references/timeout-and-dismissal.md.

Action-required toasts

Use the buttons property to add Ignore/Confirm/Undo buttons — see references/configuration.md.

Prevent duplicates

Use the beforeOpen event to cancel duplicate toasts already on screen — see references/toast-services.md.

Limit max visible toasts

Cap simultaneous toasts at N using beforeOpen and element.childElementCount — see 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.

Navigation Guide

Getting Started

📄 Read: references/message-getting-started.md

  • Installation of @syncfusion/ej2-react-notifications
  • 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

  • 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

  • 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

  • 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/message-customization.md

  • Content alignment: left (default), center (e-content-center), right (e-content-right)
  • Custom appearance with cssClass
  • CSS-only message rendering (no JS, pure HTML + CSS)
  • Content templates: JSX element or render function via content prop
  • RTL support via enableRtl
  • Persistence with enablePersistence
Accessibility

📄 Read: references/message-accessibility.md

  • WCAG 2.2, Section 508, ADA compliance
  • WAI-ARIA attributes (role=alert, aria-label)
  • Keyboard navigation (Tab, Enter/Space)
  • Screen reader support
API Reference

📄 Read: references/message-api.md

  • All properties with types, defaults, and descriptions
  • Methods: destroy, getPersistData
  • Events: closed, created, destroyed
  • MessageCloseEventArgs interface
  • Severity and Variant enum values

Quick Start

npm install @syncfusion/ej2-react-notifications --save
/* src/App.css */
@import '../node_modules/@syncfusion/ej2-base/styles/tailwind3.css';
@import '../node_modules/@syncfusion/ej2-react-notifications/styles/tailwind3.css';
import { MessageComponent } from '@syncfusion/ej2-react-notifications';
import './App.css';

function App() {
  return (
    <MessageComponent content="Please read the comments carefully" />
  );
}
export default App;

Common Patterns

Severity Messages
<MessageComponent content="Editing is restricted" />
<MessageComponent content="Operation completed" severity="Success" />
<MessageComponent content="Read these notes" severity="Info" />
<MessageComponent content="Check your connection" severity="Warning" />
<MessageComponent content="Submission failed" severity="Error" />
Variant + Severity Combo
<MessageComponent content="Editing is restricted" variant="Filled" />
<MessageComponent content="Operation completed" severity="Success" variant="Outlined" />
<MessageComponent content="Submission failed" severity="Error" variant="Filled" />
Dismissible Message
import { useState } from 'react';

function App() {
  const [visible, setVisible] = useState(true);
  return (
    <MessageComponent
      content="Your session will expire soon"
      severity="Warning"
      showCloseIcon={true}
      visible={visible}
      closed={() => setVisible(false)}
    />
  );
}
Content Template
const contentTemplate = () => (
  <div>
    <h4>Build succeeded</h4>
    <p>All 42 tests passed.</p>
  </div>
);

<MessageComponent content={contentTemplate} severity="Success" />

Skeleton

The Syncfusion React SkeletonComponent renders animated placeholder shapes that mimic the layout of loading content. It reduces perceived load time and communicates progress to users with configurable shapes, shimmer animations, and full accessibility support.

Package: @syncfusion/ej2-react-notifications


Navigation Guide

Getting Started

📄 Read: references/skeleton-getting-started.md

  • Installing @syncfusion/ej2-react-notifications
  • CSS theme imports (tailwind3)
  • Minimal SkeletonComponent setup with height and width
  • Running the Vite/React app
Shapes

📄 Read: references/skeleton-shapes.md

  • shape prop: "Circle", "Square", "Rectangle", "Text" (default)
  • Dimension rules: width required for Circle/Square; width + height for Rectangle/Text
  • Building multi-shape card skeleton layouts
  • Choosing the right shape for avatar, image, text, and icon placeholders
Shimmer Effects

📄 Read: references/skeleton-shimmer-effect.md

  • shimmerEffect prop: "Wave" (default), "Pulse", "Fade"
  • Visual behavior of each effect type
  • List skeleton example with Pulse effect
  • Selecting an effect to match UI context
Styles and Visibility

📄 Read: references/skeleton-styles.md

  • cssClass prop for custom CSS overrides (wave color, background, animation speed)
  • visible prop to toggle skeleton on/off based on loading state
  • Transition pattern: skeleton → actual content
  • CSS variable customization
Accessibility

📄 Read: references/skeleton-accessibility.md

  • WCAG 2.2, Section 508, ADA compliance
  • WAI-ARIA attributes: role="status", aria-label, aria-live, aria-busy
  • label prop for accessible skeleton names
  • RTL support via enableRtl
  • prefers-reduced-motion respect
API Reference

📄 Read: references/skeleton-api.md

  • All properties: cssClass, enablePersistence, enableRtl, height, label, locale, shape, shimmerEffect, visible, width
  • Methods: destroy()
  • SkeletonType and ShimmerEffect enum values

Quick Start

npm install @syncfusion/ej2-react-notifications --save
/* src/App.css */
@import "../node_modules/@syncfusion/ej2-base/styles/tailwind3.css";
@import "../node_modules/@syncfusion/ej2-notifications/styles/tailwind3.css";
import { SkeletonComponent } from '@syncfusion/ej2-react-notifications';
import * as React from 'react';
import './App.css';

function App() {
  return (
    <SkeletonComponent height="15px" width="100%" />
  );
}
export default App;

Common Patterns

Profile Card Skeleton
import { SkeletonComponent } from '@syncfusion/ej2-react-notifications';
import * as React from 'react';

function ProfileCardSkeleton() {
  return (
    <div style={{ display: 'flex', alignItems: 'center', gap: '12px', padding: '16px' }}>
      {/* Avatar placeholder */}
      <SkeletonComponent shape="Circle" width="48px" />
      {/* Name and subtitle placeholders */}
      <div style={{ flex: 1 }}>
        <SkeletonComponent width="60%" height="15px" />
        <br />
        <SkeletonComponent width="40%" height="12px" />
      </div>
    </div>
  );
}
export default ProfileCardSkeleton;
Toggle Skeleton on Data Load
import { SkeletonComponent } from '@syncfusion/ej2-react-notifications';
import * as React from 'react';

function DataCard() {
  const [loading, setLoading] = React.useState(true);
  const [content, setContent] = React.useState('');

  React.useEffect(() => {
    setTimeout(() => {
      setContent('Data loaded successfully');
      setLoading(false);
    }, 2000);
  }, []);

  return (
    <div>
      {loading ? (
        <SkeletonComponent width="80%" height="20px" />
      ) : (
        <p>{content}</p>
      )}
    </div>
  );
}
export default DataCard;
Shimmer List with Pulse Effect
import { SkeletonComponent } from '@syncfusion/ej2-react-notifications';
import * as React from 'react';

function ListSkeleton() {
  return (
    <ul style={{ listStyle: 'none', padding: 0 }}>
      {[1, 2, 3].map((i) => (
        <li key={i} style={{ display: 'flex', gap: '10px', marginBottom: '12px' }}>
          <SkeletonComponent shape="Circle" width="40px" shimmerEffect="Pulse" />
          <div style={{ flex: 1 }}>
            <SkeletonComponent width="70%" height="14px" shimmerEffect="Pulse" />
            <br />
            <SkeletonComponent width="45%" height="12px" shimmerEffect="Pulse" />
          </div>
        </li>
      ))}
    </ul>
  );
}
export default ListSkeleton;

Key Props at a Glance

PropTypeDefaultPurpose
shape`'Text' \'Circle' \'Square' \'Rectangle'`'Text'Skeleton shape variant
width`string \number`''Width; required for Circle/Square
height`string \number`''Height; used for Rectangle/Text
shimmerEffect`'Wave' \'Pulse' \'Fade'`'Wave'Animation style
visiblebooleantrueShow/hide skeleton
cssClassstring''Custom CSS class(es)
labelstring'Loading…'ARIA label for accessibility
enableRtlbooleanfalseRight-to-left rendering
enablePersistencebooleanfalsePersist state across reloads

Syncfusion React Spinner

A skill for implementing the Syncfusion React Spinner — a load indicator that blocks user interaction with a target element while an operation is in progress.

Documentation

Getting Started

📄 Read: references/spinner-getting-started.md

  • Installation: npm install @syncfusion/ej2-react-popups
  • CSS theme imports (ej2-base + ej2-react-popups)
  • Basic functional and class component patterns
  • createSpinner → showSpinner workflow
  • Show/hide control
  • Full-page overlay spinner
  • Troubleshooting missing styles and TypeScript errors

Spinner Features

📄 Read: references/spinner-features.md

  • Global spinner configuration with setSpinner
  • All SpinnerType values (Material, Bootstrap5, Fluent2, etc.)
  • Spinner size via width property
  • Label text alongside spinner
  • Custom HTML template support
  • Show/hide toggle patterns
  • Multiple spinners on one page
  • Async data fetching with finally cleanup
  • React state + spinner synchronization
  • Spinner inside cards and modals

API Reference

📄 Read: references/spinner-api.md

  • createSpinner(args: SpinnerArgs) — full signature and params
  • showSpinner(container: HTMLElement) — signature
  • hideSpinner(container: HTMLElement) — signature
  • setSpinner(args: SetSpinnerArgs) — signature
  • SpinnerArgs interface (target, width, label, cssClass, template, type)
  • SetSpinnerArgs interface (template, cssClass, type)
  • All 11 SpinnerType values
  • CSS import paths per theme
  • Common invalid API gotchas

Customization

📄 Read: references/spinner-customization.md

  • cssClass for CSS hook customization
  • width for spinner icon sizing
  • template for custom HTML animations
  • setSpinner for global defaults
  • Overriding spinner colors via CSS
  • Label positioning with CSS
  • Overlay backdrop customization
  • Theme-specific type mapping
  • Responsive spinner patterns

Accessibility

📄 Read: references/spinner-accessibility.md

  • aria-busy on the loading region
  • aria-live region for screen reader announcements
  • type: 'HighContrast' for high contrast displays
  • Keyboard accessibility (trigger focus, return focus)
  • Focus management patterns
  • Complete accessible spinner pattern
  • WCAG 2.1 compliance checklist

Quick Start

Minimal Spinner (Functional Component)

import { createSpinner, showSpinner } from '@syncfusion/ej2-react-popups';
import * as React from 'react';
import { useEffect } from 'react';
import './App.css';

function App() {
  useEffect(() => {
    createSpinner({
      target: document.getElementById('container') as HTMLElement
    });
    showSpinner(document.getElementById('container') as HTMLElement);
  }, []);

  return (
    <div id="container" style={{ height: '200px' }} />
  );
}

export default App;

Spinner with Show/Hide Toggle

import { createSpinner, showSpinner, hideSpinner } from '@syncfusion/ej2-react-popups';
import { useEffect, useRef, useState } from 'react';

function DataLoader() {
  const ref = useRef<HTMLDivElement>(null);
  const [loading, setLoading] = useState(false);

  useEffect(() => {
    if (ref.current) {
      createSpinner({ target: ref.current, label: 'Loading...' });
    }
  }, []);

  const load = async () => {
    setLoading(true);
    showSpinner(ref.current as HTMLElement);
    try {
      await fetchData();
    } finally {
      hideSpinner(ref.current as HTMLElement);
      setLoading(false);
    }
  };

  return (
    <div>
      <button onClick={load} disabled={loading}>Load Data</button>
      <div ref={ref} style={{ height: '200px', position: 'relative' }} />
    </div>
  );
}

Global Spinner Type

import { setSpinner } from '@syncfusion/ej2-react-popups';

// Call BEFORE any createSpinner — sets global default type
setSpinner({ type: 'Bootstrap5' });

Common Patterns

Pattern 1: Async Fetch with Cleanup

const fetchWithSpinner = async (container: HTMLElement) => {
  showSpinner(container);
  try {
    const data = await fetch('/api/data').then(r => r.json());
    return data;
  } finally {
    hideSpinner(container); // Always hide, even on error
  }
};

Pattern 2: React State Sync

useEffect(() => {
  if (!ref.current) return;
  if (isLoading) {
    showSpinner(ref.current);
  } else {
    hideSpinner(ref.current);
  }
}, [isLoading]);

Pattern 3: Full-Page Loading

useEffect(() => {
  createSpinner({ target: document.body, label: 'Initializing...' });
  showSpinner(document.body);

  initializeApp().finally(() => hideSpinner(document.body));
}, []);

Pattern 4: Spinner with Custom Type

createSpinner({
  target: el,
  type: 'Fluent2',
  width: '40px',
  label: 'Processing...',
  cssClass: 'my-overlay'
});

Key API Quick Reference

FunctionSignaturePurpose
createSpinner(args: SpinnerArgs) => voidInitialize spinner on DOM element
showSpinner(el: HTMLElement) => voidShow an existing spinner
hideSpinner(el: HTMLElement) => voidHide a visible spinner
setSpinner(args: SetSpinnerArgs) => voidSet global defaults for all spinners

SpinnerArgs properties: target (required), width, label, cssClass, template, type

SpinnerType values: 'Material' | 'Material3' | 'Fabric' | 'Bootstrap' | 'Bootstrap4' | 'Bootstrap5' | 'HighContrast' | 'Tailwind' | 'Tailwind3' | 'Fluent' | 'Fluent2'

Critical Rules

  • ❌ No SpinnerComponent class — import {SpinnerComponent} does NOT exist
  • ✅ Only use: createSpinner, showSpinner, hideSpinner, setSpinner
  • ❌ Do NOT use: color, size, visible, isLoading as SpinnerArgs — they don't exist
  • ✅ Valid SpinnerArgs: target, width, label, cssClass, template, type
  • ⚠️ Call createSpinner BEFORE showSpinner — order matters
  • ⚠️ Put spinner logic in useEffect — the DOM element must exist before calling createSpinner
  • ✅ Always call hideSpinner in finally — prevents stuck loading states

Troubleshooting

IssueSolution
Spinner not showingEnsure createSpinner is called before showSpinner; check DOM element exists
Spinner stays visibleCall hideSpinner in finally block; check for unhandled promise rejections
No animationVerify both ej2-base and ej2-react-popups CSS imported; ej2-base must come first
TypeScript errorCast: document.getElementById('id') as HTMLElement or use useRef<HTMLDivElement>
Spinner outside boundsAdd position: relative to target element
Wrong themeSet type to match your app's CSS theme (e.g., 'Fluent2' for Fluent 2 CSS)

Related Components

  • Progress Bar — For determinate progress with a percentage
  • Skeleton — For content placeholder/shimmer loading patterns
  • Toast — For non-blocking loading notifications
  • Dialog — For modal loading states that require user acknowledgment

Resources

平台分布

Codex

35.01%
按下载量换算79

Claude

29.75%
按下载量换算67

Cursor

18.2%
按下载量换算41

Gemini CLI

10.03%
按下载量换算23

安全审计

Gen Agent Trust Hub

通过

Socket

通过

Snyk

通过

权限和风险

需要联网

该 Skill 可能需要联网访问来源站点、仓库或外部 API;具体网络访问范围需要结合源码和 README 复核。

安装前确认

本站仅展示第三方公开信息,不托管安装包,不提供自动安装或运行环境。安装前应自行审查源码、依赖和命令行为。目前只有一个公开来源,建议同时核对源仓库。

继续浏览同类 Skills