MCPInstall

syncfusion-angular-accordion

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.

Installs
264
Last 24h
—
Trending rank
—
Security
Not audited

Install

Works with every agent the skills CLI supports.

npx skills add https://github.com/syncfusion/angular-ui-components-skills --skill syncfusion-angular-accordion
  1. 01

    Install

    Run the command in your project. The CLI asks which agents to install for.

  2. 02

    Describe the task

    Ask your agent for something this skill covers. It loads syncfusion-angular-accordion automatically when relevant.

  3. 03

    Review the result

    The agent follows the SKILL.md steps, scripts and references bundled with the skill.

SKILL.md

The instructions your agent reads when the skill is triggered.

Implementing Syncfusion Angular Accordion Component

When to Use This Skill

Use this skill when you need to:

  • Create collapsible content panels - Organize related content into expandable sections that collapse to save space
  • Build step-by-step wizards - Create multi-step forms or workflows where users progress through accordion items
  • Implement FAQ sections - Display frequently asked questions with expandable answers
  • Create navigation menus - Build hierarchical menus or navigation structures with nested expandable items
  • Load content dynamically - Fetch and display content on-demand as users expand accordion items
  • Add custom animations - Enhance user experience with smooth expand/collapse transitions
  • Organize complex data - Display structured data with expandable categories and subcategories

Component Overview

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:

  • Single/Multiple expand modes - Control whether one or multiple items can be open simultaneously
  • Data binding - Bind accordion items from arrays or OData services
  • Dynamic item management - Add, remove, or update items at runtime
  • Event handling - Respond to expand, collapse, and click events
  • Custom animations - Configure smooth transitions with custom effects and duration
  • Nested accordions - Create hierarchical accordion structures for complex navigation
  • TreeView integration - Embed other components like TreeView for advanced navigation
  • Content projection - Use Angular's ng-content for reusable content components

Master Table of Contents

Quick Navigation to Documentation:

  1. Getting Started - Installation, setup, and basic initialization
  2. Expand Modes - Single vs. Multiple expand modes, configuration
  3. Data Binding - Data sources, OData, REST APIs, refresh strategies
  4. Dynamic Loading and Interactions - Events, methods, dynamic item management
  5. Advanced Features - Animations, nested accordions, styling, RTL
  6. Use Cases and Patterns - Real-world implementations and patterns

Documentation and Navigation Guide

Getting Started

📄 Read: references/getting-started.md

When to use:

  • Setting up your first Accordion component
  • Installing required packages and dependencies
  • Understanding CSS imports and theme configuration
  • Learning basic initialization methods (template-based, items array, HTML elements)
  • Creating your first working example

Expand Modes

📄 Read: references/expand-modes.md

When to use:

  • Deciding whether users should expand one or multiple items
  • Configuring single mode (only one item open at a time)
  • Using multiple mode for simultaneously open items
  • Selecting the right mode for your use case
  • Handling performance with large datasets

Data Binding

📄 Read: references/data-binding.md

When to use:

  • Binding accordion data from external sources
  • Using DataManager to fetch from OData services
  • Mapping data properties to headers and content
  • Working with structured data arrays
  • Refreshing accordion content after data updates

Dynamic Loading and Interactions

📄 Read: references/dynamic-loading-and-interactions.md

When to use:

  • Adding items dynamically at runtime
  • Handling expand/collapse/click events
  • Loading content via AJAX or remote requests
  • Implementing checkbox-controlled expansion
  • Preventing item collapse or forcing items to stay open
  • Using ng-content for reusable content components
  • Creating always-open accordion items

Advanced Features

📄 Read: references/advanced-features.md

When to use:

  • Customizing expand/collapse animations with effects and easing
  • Creating nested accordions for hierarchical structures
  • Integrating TreeView components within accordion items
  • Applying custom CSS styling and theming
  • Enabling RTL (right-to-left) support
  • Styling headers, items, and expand/collapse icons

Use Cases and Patterns

📄 Read: references/use-cases-patterns.md

When to use:

  • Building FAQ sections with best practices
  • Creating multi-step wizard forms with validation
  • Designing settings panels with categories
  • Building navigation menus and organizational hierarchies
  • Displaying help and documentation sections
  • Learning real-world patterns and code organization strategies

Quick Start Example

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.'
    }
  ];
}

Common Patterns

Pattern 1: Single Expand Mode (One Item Open)

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>

Pattern 2: Dynamic Item Addition

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'
  });
}

Pattern 3: Event-Driven Workflows

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;
}

Pattern 4: Animated Expand/Collapse

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' }
};

Complete API Reference

For detailed documentation on each API element with working code examples, refer to the reference files. Below is a comprehensive summary.

Accordion Component Properties (13 Total)

PropertyTypeDefaultPurposeLearn More
itemsAccordionItemModel[][]Collection of accordion itemsData Binding
dataSourceDataManager | Object[]nullData source for binding itemsData Binding
expandMode'Single' | 'Multiple''Multiple'Controls single or multiple item expansionExpand Modes
expandedIndicesnumber[][]Indices of initially expanded itemsExpand Modes
animationAccordionAnimationSettingsModel{ expand: { effect: 'SlideDown', duration: 400, easing: 'linear' }, collapse: { effect: 'SlideUp', duration: 400, easing: 'linear' } }Expand/collapse animation settingsAdvanced Features
headerTemplatestring | FunctionnullTemplate for item headersGetting Started
itemTemplatestring | FunctionnullTemplate for item contentGetting Started
heightstring | numberautoComponent heightGetting Started
widthstring | number100%Component widthGetting Started
enableRtlbooleanfalseEnable right-to-left layoutAdvanced Features
enablePersistencebooleanfalseSave expanded state in localStorageGetting Started
enableHtmlSanitizerbooleantrueSanitize HTML in contentData Binding
localestring'en-US'Localization cultureAdvanced Features

AccordionItem Properties (8 Total)

PropertyTypeDefaultPurposeLearn More
headerstring | HTMLElement''Item header text or elementGetting Started
contentstring | HTMLElement | Function''Item content text, HTML, or functionGetting Started
expandedbooleanfalseInitial expanded stateExpand Modes
disabledbooleanfalseDisable item interactionDynamic Loading
visiblebooleantrueItem visibilityDynamic Loading
cssClassstring''Custom CSS class for itemAdvanced Features
iconCssstring''Font Awesome/Bootstrap icon classGetting Started
idstring''Unique item identifierGetting Started

Methods (7 Total)

MethodSignaturePurposeLearn More
addItem()addItem(item: AccordionItemModel | Object[], index?: number): voidAdd items at specific index or endDynamic Loading
removeItem()removeItem(index: number): voidRemove item at indexDynamic Loading
expandItem()expandItem(isExpand: boolean, index?: number): voidExpand/collapse specific or all itemsDynamic Loading, Expand Modes
enableItem()enableItem(index: number, isEnable: boolean): voidEnable/disable item interactionDynamic Loading
hideItem()hideItem(index: number, isHidden?: boolean): voidShow/hide item without removalDynamic Loading
select()select(index: number): voidSet focus to item headerDynamic Loading
destroy()destroy(): voidClean up component resourcesDynamic Loading

Events (5 Total)

EventEvent ArgsTriggered WhenLearn More
createdEventComponent rendering completesDynamic Loading
expandingExpandEventArgsItem begins to expand (cancellable)Dynamic Loading
expandedExpandEventArgsItem finishes expandingDynamic Loading
clickedAccordionClickArgsHeader or content clickedDynamic Loading
destroyedEventComponent destroyedDynamic Loading

Animation Effects (6 Types)

EffectExpand BehaviorCollapse BehaviorBest For
SlideDownContent slides downN/A (use with SlideUp)Default, smooth animations
SlideUpN/A (use with SlideDown)Content slides upDefault collapse effect
FadeDownContent fades in while slidingN/A (use with FadeUp)Professional appearance
FadeUpN/A (use with FadeDown)Content fades out while slidingProfessional appearance
ZoomContent zooms inContent zooms outAttention-grabbing effects
NoneInstantInstantBest performance

Easing Functions (5 Types)

EasingCurveBest ForTypical Use
linearConstant speedSimple animationsStraightforward expand/collapse
easeSlow start/end, fast middleDefault behaviorBalanced feel
ease-inAcceleratingCollapse actionSpeeds up as it closes
ease-outDeceleratingExpand actionSlows down as it opens
ease-in-outSlow start and endSymmetric animationsEqual timing both directions

Common Use Cases

  1. FAQ Section - Expandable question/answer pairs with single expand mode
  2. Multi-Step Wizard - Sequential items with validation and conditional enabling
  3. Settings Panel - Grouped settings organized in expandable sections
  4. Navigation Menu - Hierarchical navigation with nested accordions
  5. Data Explorer - Expandable data categories with dynamic loading
  6. Help Documentation - Collapsible help sections organized by topic

Troubleshooting Quick Reference

Item won't expand?

  • Check if item is disabled with enableItem(false, index)
  • Verify expandMode setting matches your requirement

Content not loading?

  • Ensure header and content properties are set
  • Check CSS imports are included in styles

Animation not smooth?

  • Verify CSS is properly imported
  • Check browser console for errors
  • Consider reducing animation duration for slower devices

Multiple items closing unexpectedly?

  • Verify expandMode is set to 'Multiple' if multiple should be open
  • Check event handlers aren't calling e.cancel = true

For 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.

FAQ

What does the syncfusion-angular-accordion skill do?

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.

How do I install syncfusion-angular-accordion?

Run npx skills add https://github.com/syncfusion/angular-ui-components-skills --skill syncfusion-angular-accordion in your project. The skills CLI detects the agents you use and copies the skill into the right folder. For Claude Code you can also place the skill folder at ~/.claude/skills/syncfusion-angular-accordion/ (personal) or .claude/skills/syncfusion-angular-accordion/ (project).

Which AI agents can use syncfusion-angular-accordion?

Any agent that supports the open Agent Skills format (a folder with a SKILL.md file), including Claude Code, Codex, Cursor, GitHub Copilot, Gemini CLI, Windsurf, Cline, OpenCode and more.

Is syncfusion-angular-accordion safe to install?

No partner security audit is available yet. Skills can run commands and scripts, so read the SKILL.md and any bundled files before installing.

Who maintains syncfusion-angular-accordion?

It is published by syncfusion in syncfusion/angular-ui-components-skills. It has 264 recorded installs.

More from syncfusion/angular-ui-components-skills

View all →

syncfusion-angular-grid

syncfusion/angular-ui-components-skills

Implements Syncfusion Angular Grid component for feature-rich data tables and grids. Use this when working with data display, sorting, filtering, grouping, aggregates, editing, or exporting. This skill covers grid configuration, CRUD operations, virtual scrolling or infinite scrolling, hierarchy grids, state persistence, and advanced data management features for data-intensive applications.

Frontend & Design342 installs

syncfusion-angular-common

syncfusion/angular-ui-components-skills

Common utilities and features for Syncfusion Angular components. Use this skill when the user needs to implement animations, drag-and-drop, state persistence, RTL support, localization, globalization, security, templates, and advanced features for Syncfusion Angular components.

Frontend & Design327 installs

syncfusion-angular-chart

syncfusion/angular-ui-components-skills

Implement Syncfusion Angular Chart component for professional data visualization. Use this when creating or customizing charts such as line, bar, column, area, pie, financial (candlestick, OHLC), scatter, bubble, or stock charts. Supports axes configuration, series binding, legends, tooltips, zooming, real-time updates, technical indicators, themes, export, and accessibility features.

Frontend & Design321 installs

syncfusion-angular-themes

syncfusion/angular-ui-components-skills

Use this skill when users need to apply themes, customize appearance, switch dark mode, use CSS variables, configure icons, or modify visual styling for Syncfusion Angular components. Covers icon library, size modes, and Theme Studio integration.

Frontend & Design319 installs

syncfusion-angular-license

syncfusion/angular-ui-components-skills

Use this skill when the user asks about Syncfusion Angular licensing, license keys, license registration, license validation errors, trial licenses, or license troubleshooting. This skill provides comprehensive guidance on generating, registering, and managing Syncfusion license keys for Angular applications, including edition-based and platform-based licensing models, registration methods, CI/CD integration, and resolving common licensing errors.

Frontend & Design319 installs

syncfusion-angular-rich-text-editor

syncfusion/angular-ui-components-skills

Implements the Syncfusion Angular Rich Text Editor (ejs-richtexteditor) from @syncfusion/ej2-angular-richtexteditor using RichTextEditorModule, HtmlEditorService, and MarkdownEditorService.Use this skill for toolbar configuration, image/video/audio insertion, paste cleanup, AI assistant integration, emoji picker, slash menu, mentions, import/export Word/PDF, form validation, and source code view in Angular applications.

Frontend & Design317 installs

Popular frontend & design skills

View category →

setup-matt-pocock-skills

mattpocock/skills

Configure this repo for the engineering skills: set up its issue tracker, triage label vocabulary, and domain doc layout. Run once before first use of the other engineering skills.

Frontend & Design1.1M installs

frontend-design

anthropics/skills

Guidance for distinctive, intentional visual design when building new UI or reshaping an existing one. Helps with aesthetic direction, typography, and making choices that don't read as templated defaults.

OfficialFrontend & Design1M installs

hyperframes-animation

heygen-com/hyperframes

All animation knowledge for HyperFrames — atomic motion rules, multi-phase scene blueprints, scene transitions, broader motion-design techniques, AND the seven runtime adapters (GSAP default, plus Lottie, Three.js, Anime.js, CSS keyframes, Web Animations API, TypeGPU). Use for any motion or animation task: pick 2-4 rules and compose, or load a blueprint, or look up runtime-specific API (e.g. GSAP eases / Lottie player / Three.js mixer). Also covers auditing an existing composition's choreography (animation map) and 24 named text-animation effects. HyperFrames-native: single paused timeline, seek-safe, deterministic.

prototype

mattpocock/skills

Build a throwaway prototype to answer a design question. Use when the user wants to sanity-check whether a state model or logic feels right, or explore what a UI should look like.

Frontend & Design999.2K installs

hyperframes-core

heygen-com/hyperframes

The HyperFrames composition contract — build one renderable project. Use for composition structure, the data- timing attributes, class="clip", tracks, sub-compositions, variables, framework-owned media playback, deterministic-render rules, and validation. Read before writing composition HTML.

Frontend & Design930.5K installs

vercel-react-best-practices

vercel-labs/agent-skills

React and Next.js performance optimization guidelines from Vercel Engineering. This skill should be used when writing, reviewing, or refactoring React/Next.js code to ensure optimal performance patterns. Triggers on tasks involving React components, Next.js pages, data fetching, bundle optimization, or performance improvements.

OfficialFrontend & Design843.1K installs