Token导航 LogoToken导航TokenDH.com
前端设计需要联网github未标认证来源可访问许可证需确认审计通过

syncfusion-react-sidebarsyncfusion React sidebar 前端

Agent Skill

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

总安装

635

周安装

27

GitHub Stars

1

下载量

222
CodexClaudeCursorGemini CLI

安装说明

本站只整理中文说明和来源信息,不托管安装包,也不代用户安装。

GitHub

来源数

2

许可证

unknown

最后核验

2026-05-01

来源状态

来源可访问

安装方式

通过对话安装

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

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

命令行安装

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

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

简介

用于辅助 React 侧边栏组件的开发与维护。

  • 适合在 Codex、Claude、Cursor、Gemini CLI 中生成或审查前端布局代码。
  • 通过 GitHub 安装,需结合项目现有设计系统使用。
  • 涉及页面改动时应配合本地预览确认视觉效果。
  • syncfusion-react-sidebar 属于前端设计类 Skill,可作为该场景下的辅助能力补充。

SKILL.md

Implementing Syncfusion React Sidebar

The Syncfusion React Sidebar is a responsive navigation component that enables flexible layout patterns for modern web applications. It supports multiple display modes (Over, Push, Slide, Auto), responsive breakpoints, touch gestures, keyboard navigation, and seamless integration with ListView and TreeView components.

When to Use This Skill

Choose Sidebar when you need:

  • Responsive navigation - Drawer menus that adapt to desktop/mobile viewports
  • Multi-mode layouts - Over (float), Push (shift content), Slide (translate), or Auto (responsive) behaviors
  • Content organization - Nested menus, ListView/TreeView integration, or multi-panel layouts
  • User interaction patterns - Toggle buttons, backdrop overlays, auto-close on item click, or keyboard shortcuts
  • Accessibility - ARIA labels, keyboard navigation (Tab, Enter, Escape), and screen reader support
  • Customization - Themed styling, animation variations, RTL support, or custom context containers

Navigation Guide

Getting Started

📄 Read: references/getting-started.md

  • Installation and package setup
  • Basic sidebar rendering
  • CSS imports and theme configuration
  • Initial state management
  • First working example

API Reference: Properties

📄 Read: references/properties-reference.md

  • All 18 properties with types, defaults, and examples
  • Display properties (type, position, width, animate, showBackdrop, zIndex)
  • Behavior properties (closeOnDocumentClick, enableGestures, enableRtl, mediaQuery)
  • State properties (isOpen, enableDock, dockSize, enablePersistence)
  • Container property (target)

API Reference: Methods

📄 Read: references/methods-reference.md

  • show(e?: Event) - Display sidebar with optional event parameter
  • hide(e?: Event) - Hide sidebar with optional event parameter
  • toggle() - Toggle open/closed state
  • destroy() - Remove sidebar from DOM
  • Complete examples for each method

API Reference: Events

📄 Read: references/events-reference.md

  • change - State change notification (user or programmatic)
  • open - Before sidebar opens (preventable)
  • close - Before sidebar closes (preventable)
  • created - After sidebar is initialized
  • destroyed - When sidebar is removed
  • Event handling examples and patterns

API Reference: Event Arguments

📄 Read: references/event-arguments-reference.md

  • ChangeEventArgs interface - element, name, cancel, isInteracted
  • EventArgs interface - cancel, element, event, isInteracted, model
  • SidebarModel object - Complete configuration snapshot
  • Type definitions and usage examples

Sidebar Positioning & Behavior

📄 Read: references/sidebar-positioning.md

  • Sidebar types: Over, Push, Slide, Auto
  • Position: Left or Right
  • Width and dock size configuration
  • Multiple sidebars side-by-side
  • Media query responsive behavior

Opening & Closing Sidebar

📄 Read: references/opening-closing.md

  • Toggle functionality
  • Programmatic show/hide methods
  • Auto-close on document click
  • Auto-close on escape key
  • Animation transitions
  • Event handling for state changes

Content Integration

📄 Read: references/content-integration.md

  • ListView integration with sidebar
  • TreeView integration for hierarchical navigation
  • Custom HTML content and structures
  • Dynamic data binding patterns
  • Menu-like navigation structures

Styling & Customization

📄 Read: references/styling-customization.md

  • CSS class customization
  • Theme styles (default, material, bootstrap)
  • Animation variations and timing
  • Responsive breakpoint patterns
  • RTL (Right-to-Left) support
  • Custom animations

Accessibility & Best Practices

📄 Read: references/accessibility.md

  • WCAG compliance guidelines
  • Keyboard navigation (Tab, Enter, Escape)
  • ARIA attributes for screen readers
  • Focus management
  • Backdrop overlay interaction patterns

Quick Start

import React, { useState } from 'react';
import { SidebarComponent } from '@syncfusion/ej2-react-navigations';
import { ButtonComponent } from '@syncfusion/ej2-react-buttons';

function App() {
  const [isOpen, setIsOpen] = useState(false);

  const handleToggle = () => {
    setIsOpen(!isOpen);
  };

  return (
    <div className="container">
      {/* Toggle Button */}
      <ButtonComponent
        cssClass="e-primary"
        onClick={handleToggle}
      >
        Toggle Sidebar
      </ButtonComponent>

      {/* Sidebar Component */}
      <SidebarComponent
        id="sidebar"
        width="250px"
        type="Over"
        isOpen={isOpen}
        change={() => setIsOpen(!isOpen)}
        showBackdrop={true}
        closeOnDocumentClick={true}
      >
        <div className="sidebar-content">
          <h3>Navigation Menu</h3>
          <ul>
            <li><a href="#home">Home</a></li>
            <li><a href="#about">About</a></li>
            <li><a href="#services">Services</a></li>
            <li><a href="#contact">Contact</a></li>
          </ul>
        </div>
      </SidebarComponent>

      {/* Main Content */}
      <div className="main-content">
        <h1>Main Content Area</h1>
        <p>Content shifts when type is "Push"</p>
      </div>
    </div>
  );
}

export default App;

Common Patterns

Pattern 1: Responsive Auto Sidebar

Automatically switches between Over (mobile) and Push (desktop) modes based on viewport.

<SidebarComponent
  type="Auto"
  width="250px"
  isOpen={true}
  showBackdrop={true}
/>

Pattern 2: Mobile Drawer Menu

Floating sidebar that closes on backdrop click or escape key.

<SidebarComponent
  type="Over"
  width="280px"
  showBackdrop={true}
  closeOnDocumentClick={true}
  position="Left"
/>

Pattern 3: Docked Navigation Panel

Persistent sidebar with fixed width that shows as icon bar when docked.

<SidebarComponent
  enableDock={true}
  dockSize="50px"
  width="250px"
  type="Push"
/>

Pattern 4: RTL Navigation (Arabic/Hebrew)

Right-aligned sidebar for right-to-left languages.

<SidebarComponent
  position="Right"
  enableRtl={true}
  type="Over"
/>

Key Properties Overview

PropertyTypeDefaultPurpose
typeSidebarType'Auto'Display mode: Over, Push, Slide, Auto
isOpenbooleanfalseControls sidebar open/closed state
positionSidebarPosition'Left'Sidebar placement: Left or Right
width`string \number`'auto'Sidebar width (pixels or percentage)
target`HTMLElement \string`nullContainer to render sidebar inside
showBackdropbooleanfalseShow overlay when open
closeOnDocumentClickbooleanfalseClose on content area click
animatebooleantrueEnable open/close animations
enableDockbooleanfalseEnable dock/minimize mode
dockSize`string \number`'auto'Width when docked
enableGesturesbooleantrueTouch swipe gestures
enableRtlbooleanfalseRight-to-left layout

Common Use Cases

  • Admin Dashboard Navigation - Top header with collapsible sidebar menu
  • Mobile App Navigation - Hamburger menu with drawer sidebar
  • E-commerce Product Filter - Left sidebar with expandable categories
  • Documentation Sites - Persistent table of contents sidebar
  • Settings Panels - Floating right sidebar for preferences
  • Multi-panel Layouts - Multiple sidebars on different sides

适合场景

01

用户想查找某类 Agent Skill 时

02

需要根据任务场景推荐可安装能力包时

03

需要对比不同来源的安装命令和来源信息时

能力概览

能力 1

按任务关键词查找相关 Skills

能力 2

展示可复制的安装命令

能力 3

保留来源站点、仓库和原始说明,方便继续核验

能力 4

展示第三方安全扫描或审计结果

安装后应在对应宿主中按原始 README 的触发条件使用;具体调用方式请以来源页面和 README 为准。

平台分布

Codex

37.51%
按下载量换算83

Claude

30.02%
按下载量换算67

Cursor

20.01%
按下载量换算44

Gemini CLI

8.8%
按下载量换算20

安全审计

Gen Agent Trust Hub

通过

Socket

通过

Snyk

通过

权限和风险

需要联网

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

安装前确认

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

来源信息

继续浏览同类 Skills