/syncfusion-angular:syncfusion-angular-accordionfrom Syncfusion Angular UI Components
Guide for implementing Angular Accordion components for collapsible content panels, expandable sections, FAQs, multi-step wizards, step-by-step forms, navigation menus, or tabbed navigation. Use this skill when users mention expanding/collapsing content, accordion layouts, step-by-step workflows, or hierarchical content organization. This skill covers initialization, expand modes, data binding, dynamic loading, animations, nested accordions, and real-world patterns.
Ships in Syncfusion Angular 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.
Use this skill when you need to:
The Syncfusion Angular Accordion component displays a vertically collapsible content panel where users can expand one or more sections at a time. Key capabilities include:
ng-content for reusable content componentsQuick Navigation to Documentation:
📄 Read: references/getting-started.md
When to use:
📄 Read: references/expand-modes.md
When to use:
📄 Read: references/data-binding.md
When to use:
📄 Read: references/dynamic-loading-and-interactions.md
When to use:
ng-content for reusable content components📄 Read: references/advanced-features.md
When to use:
📄 Read: references/use-cases-patterns.md
When to use:
Basic template-based accordion with three items:
import { Component } from '@angular/core';
import { AccordionModule } from '@syncfusion/ej2-angular-navigations';
@Component({
standalone: true,
selector: 'app-root',
imports: [AccordionModule],
template: `
<ejs-accordion>
<e-accordionitems>
<e-accordionitem expanded="true">
<ng-template #header>
<div>ASP.NET</div>
</ng-template>
<ng-template #content>
<div>Microsoft ASP.NET is a set of technologies in the Microsoft .NET Framework for building Web applications and XML Web services.</div>
</ng-template>
</e-accordionitem>
<e-accordionitem>
<ng-template #header>
<div>ASP.NET MVC</div>
</ng-template>
<ng-template #content>
<div>The Model-View-Controller (MVC) architectural pattern separates an application into three main components: the model, the view, and the controller.</div>
</ng-template>
</e-accordionitem>
<e-accordionitem>
<ng-template #header>
<div>JavaScript</div>
</ng-template>
<ng-template #content>
<div>JavaScript (JS) is an interpreted computer programming language used for creating interactive web pages and applications.</div>
</ng-template>
</e-accordionitem>
</e-accordionitems>
</ejs-accordion>
`
})
export class AppComponent {}
Using items array approach:
import { Component } from '@angular/core';
import { AccordionModule } from '@syncfusion/ej2-angular-navigations';
@Component({
standalone: true,
selector: 'app-root',
imports: [AccordionModule],
template: `<ejs-accordion [items]="accordionItems"></ejs-accordion>`
})
export class AppComponent {
public accordionItems = [
{
header: 'ASP.NET',
content: 'Microsoft ASP.NET is a set of technologies in the Microsoft .NET Framework for building Web applications.',
expanded: true
},
{
header: 'ASP.NET MVC',
content: 'The Model-View-Controller (MVC) architectural pattern separates an application into three main components.'
},
{
header: 'JavaScript',
content: 'JavaScript (JS) is an interpreted computer programming language used for creating interactive web pages.'
}
];
}
Use when you want only one accordion item open at a time, common for navigation menus and settings panels.
<ejs-accordion expandMode="Single">
<!-- items here -->
</ejs-accordion>
Add items programmatically in response to user actions or data loading.
@ViewChild('accordion') accordionObj?: AccordionComponent;
addNewItem() {
this.accordionObj?.addItem({
header: 'New Item',
content: 'New content here'
});
}
Respond to accordion events for custom logic like validation or data loading.
<ejs-accordion (expanding)="onExpanding($event)" (expanded)="onExpanded($event)">
<!-- items here -->
</ejs-accordion>
onExpanding(event: ExpandEventArgs) {
// Prevent collapse of currently open item
event.cancel = true;
}
Add smooth animations for better visual feedback.
<ejs-accordion [animation]="animationSettings">
<!-- items here -->
</ejs-accordion>
animationSettings = {
expand: { effect: 'SlideDown', duration: 400, easing: 'ease' },
collapse: { effect: 'SlideUp', duration: 400, easing: 'ease' }
};
For detailed documentation on each API element with working code examples, refer to the reference files. Below is a comprehensive summary.
| Property | Type | Default | Purpose | Learn More |
|---|---|---|---|---|
items | AccordionItemModel[] | [] | Collection of accordion items | Data Binding |
dataSource | DataManager | Object[] | null | Data source for binding items | Data Binding |
expandMode | 'Single' | 'Multiple' | 'Multiple' | Controls single or multiple item expansion | Expand Modes |
expandedIndices | number[] | [] | Indices of initially expanded items | Expand Modes |
animation | AccordionAnimationSettingsModel | { expand: { effect: 'SlideDown', duration: 400, easing: 'linear' }, collapse: { effect: 'SlideUp', duration: 400, easing: 'linear' } } | Expand/collapse animation settings | Advanced Features |
headerTemplate | string | Function | null | Template for item headers | Getting Started |
itemTemplate | string | Function | null | Template for item content | Getting Started |
height | string | number | auto | Component height | Getting Started |
width | string | number | 100% | Component width | Getting Started |
enableRtl | boolean | false | Enable right-to-left layout | Advanced Features |
enablePersistence | boolean | false | Save expanded state in localStorage | Getting Started |
enableHtmlSanitizer | boolean | true | Sanitize HTML in content | Data Binding |
locale | string | 'en-US' | Localization culture | Advanced Features |
| Property | Type | Default | Purpose | Learn More |
|---|---|---|---|---|
header | string | HTMLElement | '' | Item header text or element | Getting Started |
content | string | HTMLElement | Function | '' | Item content text, HTML, or function | Getting Started |
expanded | boolean | false | Initial expanded state | Expand Modes |
disabled | boolean | false | Disable item interaction | Dynamic Loading |
visible | boolean | true | Item visibility | Dynamic Loading |
cssClass | string | '' | Custom CSS class for item | Advanced Features |
iconCss | string | '' | Font Awesome/Bootstrap icon class | Getting Started |
id | string | '' | Unique item identifier | Getting Started |
| Method | Signature | Purpose | Learn More |
|---|---|---|---|
addItem() | addItem(item: AccordionItemModel | Object[], index?: number): void | Add items at specific index or end | Dynamic Loading |
removeItem() | removeItem(index: number): void | Remove item at index | Dynamic Loading |
expandItem() | expandItem(isExpand: boolean, index?: number): void | Expand/collapse specific or all items | Dynamic Loading, Expand Modes |
enableItem() | enableItem(index: number, isEnable: boolean): void | Enable/disable item interaction | Dynamic Loading |
hideItem() | hideItem(index: number, isHidden?: boolean): void | Show/hide item without removal | Dynamic Loading |
select() | select(index: number): void | Set focus to item header | Dynamic Loading |
destroy() | destroy(): void | Clean up component resources | Dynamic Loading |
| Event | Event Args | Triggered When | Learn More |
|---|---|---|---|
created | Event | Component rendering completes | Dynamic Loading |
expanding | ExpandEventArgs | Item begins to expand (cancellable) | Dynamic Loading |
expanded | ExpandEventArgs | Item finishes expanding | Dynamic Loading |
clicked | AccordionClickArgs | Header or content clicked | Dynamic Loading |
destroyed | Event | Component destroyed | Dynamic Loading |
| Effect | Expand Behavior | Collapse Behavior | Best For |
|---|---|---|---|
SlideDown | Content slides down | N/A (use with SlideUp) | Default, smooth animations |
SlideUp | N/A (use with SlideDown) | Content slides up | Default collapse effect |
FadeDown | Content fades in while sliding | N/A (use with FadeUp) | Professional appearance |
FadeUp | N/A (use with FadeDown) | Content fades out while sliding | Professional appearance |
Zoom | Content zooms in | Content zooms out | Attention-grabbing effects |
None | Instant | Instant | Best performance |
| Easing | Curve | Best For | Typical Use |
|---|---|---|---|
linear | Constant speed | Simple animations | Straightforward expand/collapse |
ease | Slow start/end, fast middle | Default behavior | Balanced feel |
ease-in | Accelerating | Collapse action | Speeds up as it closes |
ease-out | Decelerating | Expand action | Slows down as it opens |
ease-in-out | Slow start and end | Symmetric animations | Equal timing both directions |
Item won't expand?
enableItem(false, index)expandMode setting matches your requirementContent not loading?
header and content properties are setAnimation not smooth?
Multiple items closing unexpectedly?
expandMode is set to 'Multiple' if multiple should be opene.cancel = trueFor detailed information on any aspect, refer to the documentation and navigation guide above. Start with getting-started.md if you're new to the component.
references/advanced-features.md (opens in a new tab)references/data-binding.md (opens in a new tab)references/dynamic-loading-and-interactions.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/use-cases-patterns.md (opens in a new tab)What SKILL.md sets; muted values are Claude Code's defaults
npx claudepluginhub syncfusion/boldcreate-plugins --plugin syncfusion-angular65 skills in this plugin
/syncfusion-angular-3d-chartImplement interactive 3D charts in Angular applications using Syncfusion. Guide covers setup, chart types (bar, column, stacked variants), customization, data binding, axis configuration, legends, tooltips, selection, data labels, appearance styling, dimensions, print/export, and accessibility. Use this skill whenever a user needs to create, configure, or customize 3D chart visualizations./syncfusion-angular-accumulation-chartImplement and customize Syncfusion Angular Accumulation Charts (Pie, Doughnut, Pyramid, Funnel) with data binding, labels, legends, and tooltips. Use this when creating accumulation charts, configuring chart types, customizing data visualization, adding annotations, or handling interactive chart events in Angular applications./syncfusion-angular-ai-assistviewImplement the Syncfusion Angular AI AssistView component. Use this skill when you need to create conversational AI interfaces, integrate AI services, add chat-like UI, or create intelligent assistant applications. Includes setup, configuration, event handling, AI integrations (OpenAI, Gemini, Ollama), speech features, chain-of-thought reasoning, generative UI tool support, and customization. Use this skill for all AI AssistView component implementation needs.Other plugins' skills for the same job