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

syncfusion-react-splittersyncfusion React splitter 前端

Agent Skill

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

总安装

674

周安装

27

GitHub Stars

1

下载量

218
CodexClaudeCursorGemini CLI

安装说明

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

GitHub

来源数

2

许可证

unknown

最后核验

2026-05-01

来源状态

来源可访问

安装方式

通过对话安装

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

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

命令行安装

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

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

简介

用于辅助 React 分割器组件的开发与维护。

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

SKILL.md

Implementing Syncfusion React Splitter

The Splitter component creates flexible, resizable panel layouts with advanced configuration options. This skill guides you through installation, layout patterns, customization, and accessibility features.

When to Use This Skill

Use the Splitter component when you need to:

  • Create flexible layouts with multiple resizable panels
  • Build split-screen interfaces (code editors, dashboards, file explorers)
  • Allow users to adjust pane sizes dynamically
  • Display collapsible panes with expand/collapse functionality
  • Support different layout orientations (horizontal, vertical, nested)
  • Implement responsive multi-panel layouts
  • Add custom content types (HTML, components, selectors) to panes

Component Overview

SplitterComponent provides a container for multiple panes that users can resize by dragging separators. Each pane is defined with <PaneDirective> within <PanesDirective>.

Key Features:

  • Multiple layout orientations (horizontal, vertical, nested)
  • Dynamic pane resizing with constraints
  • Expand/collapse pane functionality
  • Multiple content types (HTML, components, CSS selectors)
  • Events for resize, expand, collapse operations
  • Add/remove panes dynamically at runtime
  • Accessibility and RTL support
  • Theme customization

Installation: npm install @syncfusion/ej2-react-layouts --save

Documentation and Navigation Guide

Getting Started

📄 Read: references/getting-started.md

  • Installation and package setup
  • CSS imports and theme configuration
  • Basic Splitter initialization with PanesDirective
  • First working example
  • Import statements and dependencies

API Reference: Properties and Configuration

📄 Read: references/properties-and-configuration.md

  • Complete SplitterComponent properties (orientation, height, width, separatorSize, etc.)
  • All PaneDirective properties (size, min, max, collapsed, collapsible, resizable, content, cssClass)
  • enablePersistence for state persistence
  • enableHtmlSanitizer for security
  • Common configuration patterns and examples

API Reference: Methods

📄 Read: references/methods-reference.md

  • addPane() - Dynamically add new panes with PanePropertiesModel
  • removePane() - Remove panes by index
  • collapse() - Programmatically collapse panes
  • expand() - Programmatically expand panes
  • destroy() - Component cleanup and resource release
  • Real-world examples with working code

API Reference: Events

📄 Read: references/events-reference.md

  • created - Component initialization
  • beforeCollapse / collapsed - Collapse events with cancellation
  • beforeExpand / expanded - Expand events with data loading
  • resizeStart / resizing / resizeStop - Resize lifecycle
  • Event handling patterns and state management

Pane Layout Configuration

📄 Read: references/pane-layout-configuration.md

  • Horizontal and vertical layouts
  • Multiple panes and nested splitters
  • Pane properties and configuration
  • Layout patterns for common use cases

Pane Sizing and Separation

📄 Read: references/pane-sizing-and-separation.md

  • Fixed pane sizing
  • Percentage-based sizing
  • Min and max size constraints
  • Separator styling and customization
  • Dynamic size adjustments

Expand and Collapse Functionality

📄 Read: references/expand-collapse-functionality.md

  • Collapsed state initialization
  • Button integration for expand/collapse
  • User-driven vs programmatic collapse
  • Event handling patterns

Resize Behavior

📄 Read: references/resize-behavior.md

  • Resize events and lifecycle
  • Preventing resize on specific panes
  • Dynamic resize configuration
  • Resize constraints and validation
  • Event data and handling

Pane Content and Styling

📄 Read: references/pane-content-and-styling.md

  • HTML content in panes
  • React component content in panes
  • CSS selector-based content
  • Pane template usage
  • Custom styling and classes

Accessibility and Globalization

📄 Read: references/accessibility-and-globalization.md

  • WCAG compliance and keyboard navigation
  • ARIA attributes and screen reader support
  • RTL (Right-to-Left) support
  • Internationalization and locale
  • Focus management and accessibility patterns

Style Customization

📄 Read: references/style-customization.md

  • CSS customization and custom classes
  • Theme variables and CSS imports
  • Gripper and separator styling
  • Responsive design patterns
  • Dark mode and theme switching

Quick Start Example

import { PaneDirective, PanesDirective, SplitterComponent } from '@syncfusion/ej2-react-layouts';
import * as React from "react";
import './App.css';

function App() {
  return (
    <div className='App'>
      <SplitterComponent>
        <PanesDirective>
          <PaneDirective size='200px'>
            <div>Left Panel</div>
          </PaneDirective>
          <PaneDirective size='300px'>
            <div>Right Panel</div>
          </PaneDirective>
        </PanesDirective>
      </SplitterComponent>
    </div>
  );
}

export default App;

Common Patterns

Two-Column Layout

<SplitterComponent orientation='Horizontal'>
  <PanesDirective>
    <PaneDirective size='25%'><div>Left</div></PaneDirective>
    <PaneDirective size='75%'><div>Main Content</div></PaneDirective>
  </PanesDirective>
</SplitterComponent>

Vertical Split with Collapse

<SplitterComponent orientation='Vertical'>
  <PanesDirective>
    <PaneDirective size='50%' collapsed={true}><div>Top</div></PaneDirective>
    <PaneDirective size='50%'><div>Bottom</div></PaneDirective>
  </PanesDirective>
</SplitterComponent>

Three-Panel Dashboard

<SplitterComponent orientation='Horizontal'>
  <PanesDirective>
    <PaneDirective size='20%'><div>Sidebar</div></PaneDirective>
    <PaneDirective size='60%'><div>Main Content</div></PaneDirective>
    <PaneDirective size='20%'><div>Right Panel</div></PaneDirective>
  </PanesDirective>
</SplitterComponent>

Nested Splitters

Combine horizontal and vertical splitters for complex layouts like code editors with file explorer, editor, and console panels.

Key Props

PropTypeDescriptionWhen to Use
orientation'Horizontal' \'Vertical'Layout directionWhen configuring panel direction
sizestring (PaneDirective)Pane width/height (px, %)When setting pane dimensions
minstring (PaneDirective)Minimum pane sizeWhen preventing pane from shrinking too small
maxstring (PaneDirective)Maximum pane sizeWhen limiting pane expansion
collapsedboolean (PaneDirective)Initial collapsed stateWhen panes should start hidden
collapsibleboolean (PaneDirective)Allow user to collapseWhen collapsing should be user-driven
resizableboolean (PaneDirective)Allow user to resizeWhen preventing manual resizing

Common Use Cases

File Explorer + Editor: Left sidebar (fixed 250px) with collapsible file tree, main editor area with resizing

Dashboard: Top bar (fixed height), left sidebar (collapsible nav), main content, right details panel

Chat Interface: Left contact list (fixed width), chat area (resizable), right info panel

Code Editor: Left explorer (collapsible), center editor (main), bottom console (collapsible)

Email Client: Left folders (fixed), center list (resizable), right preview (resizable)

适合场景

01

用户想查找某类 Agent Skill 时

02

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

03

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

能力概览

能力 1

按任务关键词查找相关 Skills

能力 2

展示可复制的安装命令

能力 3

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

能力 4

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

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

平台分布

Codex

36.89%
按下载量换算80

Claude

32.83%
按下载量换算72

Cursor

17.85%
按下载量换算39

Gemini CLI

9.85%
按下载量换算21

安全审计

Gen Agent Trust Hub

通过

Socket

通过

Snyk

通过

权限和风险

需要联网

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

安装前确认

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

来源信息

继续浏览同类 Skills