/syncfusion-react:syncfusion-react-accordionfrom Syncfusion React UI Components
Guide users to implement Syncfusion React Accordion component for collapsible content panels. Use this skill whenever the user needs to create expandable/collapsible sections, accordion layouts, tabbed content panels, multi-step forms, FAQs, or navigation with expandable items. Covers component setup, expand modes, animations, dynamic content loading, styling, events, lifecycle, React hooks integration, and complete API reference.
Ships in Syncfusion React UI Components. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them.
The React Accordion component provides a clean, organized way to display content in collapsible panels. It's perfect for creating expandable content sections, FAQs, multi-step forms, and navigation menus with minimal code.
The Accordion component renders a stack of collapsible panels where:
📄 Read: references/getting-started.md
When to read: First time setting up the Accordion component
📄 Read: references/expand-modes.md
When to read: Controlling which panels expand at the same time
expandedIndices property📄 Read: references/animation-effects.md
When to read: Customizing panel transitions and visual effects
📄 Read: references/content-loading.md
When to read: Loading content dynamically or from external sources
addItem() method📄 Read: references/events-lifecycle.md
When to read: Handling user interactions and component lifecycle
📄 Read: references/styling-customization.md
When to read: Customizing appearance and integrating with design systems
📄 Read: references/advanced-features.md
When to read: Building complex layouts and optimizing performance
Basic accordion with three collapsible panels:
import React from 'react';
import { AccordionComponent, AccordionItemDirective, AccordionItemsDirective } from '@syncfusion/ej2-react-navigations';
import '@syncfusion/ej2-base/styles/tailwind3.css';
import '@syncfusion/ej2-buttons/styles/tailwind3.css';
import '@syncfusion/ej2-popups/styles/tailwind3.css';
import '@syncfusion/ej2-react-navigations/styles/tailwind3.css';
export default function App() {
return (
<AccordionComponent expandMode='Multiple'>
<AccordionItemsDirective>
<AccordionItemDirective
header='HTML'
content='HTML is a markup language used to create web pages.'
/>
<AccordionItemDirective
header='CSS'
content='CSS is used to style HTML elements and create layouts.'
/>
<AccordionItemDirective
header='JavaScript'
content='JavaScript adds interactivity to web applications.'
/>
</AccordionItemsDirective>
</AccordionComponent>
);
}
Questions automatically collapse when a new one is opened:
<AccordionComponent expandMode='Single'>
<AccordionItemsDirective>
<AccordionItemDirective header='What is React?' content='React is a JavaScript library for building UIs with components.' />
<AccordionItemDirective header='What is JSX?' content='JSX is a syntax extension for writing HTML-like code in JavaScript.' />
</AccordionItemsDirective>
</AccordionComponent>
All panels can remain expanded simultaneously:
<AccordionComponent expandMode='Multiple'>
<AccordionItemsDirective>
<AccordionItemDirective expanded={true} header='Features' content='...' />
<AccordionItemDirective expanded={true} header='Installation' content='...' />
</AccordionItemsDirective>
</AccordionComponent>
Pre-expand specific panels on load:
<AccordionItemDirective
expanded={true}
header='Quick Start'
content='This section opens by default.'
/>
| Property | Type | Purpose | Default |
|---|---|---|---|
expandMode | 'Single' | 'Multiple' | Control single/multiple panel expansion | 'Multiple' |
expandedIndices | number[] | Array of indices for initially expanded items | [] |
animation | AnimationSettings | Expand/collapse animation config | SlideDown/SlideUp |
dataSource | Object[] | Array of items for data binding | [] |
headerTemplate | string | function | Custom header template for all items | null |
itemTemplate | string | function | Custom item template for rendering | null |
height | string | number | Component height in px/% | 'auto' |
width | string | number | Component width in px/% | '100%' |
enableHtmlSanitizer | boolean | Sanitize untrusted HTML content | true |
enablePersistence | boolean | Persist expanded state between reloads | false |
enableRtl | boolean | Enable right-to-left layout | false |
locale | string | Locale code for internationalization | '' |
| Property | Type | Purpose | Default |
|---|---|---|---|
header | string | Item header text (accepts HTML) | - |
content | string | Item content text (accepts HTML) | - |
expanded | boolean | Set initial expanded state for item | false |
disabled | boolean | Disable specific accordion item | false |
cssClass | string | Custom CSS classes for item | - |
| Method | Parameters | Purpose |
|---|---|---|
addItem() | item, index (optional) | Add new accordion item(s) |
removeItem() | index | Remove item at specified index |
enableItem() | index, isEnable | Enable/disable specific item |
hideItem() | index, isHidden | Show/hide specific item |
expandItem() | isExpand, index (optional) | Expand/collapse items |
select() | index | Set focus to item header |
destroy() | none | Remove component from DOM |
| Use Case | Mode | Key Feature |
|---|---|---|
| FAQ Section | Single | Only one question visible at a time |
| Settings Panel | Multiple | Check multiple options simultaneously |
| Multi-Step Form | Single | Guide user through steps sequentially |
| Content Organizer | Multiple | Browse multiple topics at once |
| Navigation Menu | Single | Tree-like hierarchical navigation |
| Data Dashboard | Multiple | View multiple data sections together |
Need help? Check the specific reference files above based on what you're trying to build!
references/advanced-features.md (opens in a new tab)references/animation-effects.md (opens in a new tab)references/content-loading.md (opens in a new tab)references/events-lifecycle.md (opens in a new tab)references/expand-modes.md (opens in a new tab)references/getting-started.md (opens in a new tab)references/styling-customization.md (opens in a new tab)What SKILL.md sets; muted values are Claude Code's defaults
npx claudepluginhub syncfusion/boldcreate-plugins --plugin syncfusion-react65 skills in this plugin
/syncfusion-react-3d-chartImplement Syncfusion React 3D Chart component from the @syncfusion/ej2-react-charts package. Use this skill when users need 3D column, bar, stacked column, stacked bar, or 100% stacked chart variations. Covers Chart3DComponent, axis configuration (category, numeric, datetime, logarithmic), data binding, multiple panes, data labels, legends, tooltips, selection, print/export, theming, and accessibility./syncfusion-react-3d-circular-chartImplements the Syncfusion React 3D Circular Chart component for pie and donut chart visualization. Use this when users need 3D circular charts, data labels, legends, tooltips, or empty point handling. Guides through installation, configuration, customization, and troubleshooting of 3D Circular Charts in React applications./syncfusion-react-accumulation-chartImplement Syncfusion React Accumulation Charts including Pie, Doughnut, Funnel, and Pyramid chart types. Use this skill when users need circular data visualization, percentage-based charts, or proportional data displays. Covers data labels, legends, tooltips, grouping, smart labels, drill-down charts, explode effects, theming, accessibility, export/print capabilities, and dynamic data updates.Other plugins' skills for the same job