syncfusion-blazor-accordion — independently scanned and version-tracked by SaferSkills.
SaferSkills independently audited syncfusion-blazor-accordion (Agent Skill) and scored it 100/100 (green). The audit ran 55 deterministic rules across Security, Supply Chain, Maintenance, Transparency, and Community; it found 0 high-severity and 0 lower-severity findings. The full rule-by-rule trace and per-finding evidence are below. Free, methodology-open.
Findings & checks · 0 flagged
Every scanned point with the score it earned and what moved between them.
First recorded scan — no prior version to compare against.
The primary manifest — the file an agent reads to learn what this artifact does.
The Blazor Accordion is a vertically collapsible content container that displays one or more panels. Each panel consists of a header and expandable content section. It supports single or multiple panel expansion, nested accordions, animations, and is fully accessible with WCAG compliance.
Use this skill when you need to:
📄 Read: references/getting-started.md
📄 Read: references/expand-modes.md
📄 Read: references/content-rendering.md
📄 Read: references/data-binding-events.md
📄 Read: references/customization-styling.md
📄 Read: references/accessibility-animations.md
📄 Read: references/how-to-scenarios.md
@using Syncfusion.Blazor.Navigations
<SfAccordion>
<AccordionItems>
<AccordionItem Header="ASP.NET" Content="Microsoft ASP.NET is a set of technologies for building Web applications."></AccordionItem>
<AccordionItem Header="ASP.NET MVC" Content="The Model-View-Controller pattern separates an application into three components."></AccordionItem>
<AccordionItem Header="JavaScript" Content="JavaScript is an interpreted programming language for web development."></AccordionItem>
</AccordionItems>
</SfAccordion>@using Syncfusion.Blazor.Navigations
<SfAccordion>
<AccordionItems>
<AccordionItem>
<HeaderTemplate>
<div>Employee Details</div>
</HeaderTemplate>
<ContentTemplate>
<div>
<b>Name:</b> John Doe<br />
<b>Position:</b> Software Engineer
</div>
</ContentTemplate>
</AccordionItem>
</AccordionItems>
</SfAccordion>@using Syncfusion.Blazor.Navigations
<SfAccordion>
<AccordionItems>
@foreach (var item in AccordionData)
{
<AccordionItem>
<HeaderTemplate>
<div>@item.Title</div>
</HeaderTemplate>
<ContentTemplate>
<div>@item.Content</div>
</ContentTemplate>
</AccordionItem>
}
</AccordionItems>
</SfAccordion>
@code {
List<DataItem> AccordionData = new List<DataItem>() {
new DataItem { Title = "Item 1", Content = "Content 1" },
new DataItem { Title = "Item 2", Content = "Content 2" }
};
public class DataItem {
public string Title { get; set; }
public string Content { get; set; }
}
}Use when only one panel should be open at a time (like FAQs):
<SfAccordion ExpandMode="ExpandMode.Single">
<AccordionItems>
<AccordionItem Expanded="true" Header="Question 1" Content="Answer 1"></AccordionItem>
<AccordionItem Header="Question 2" Content="Answer 2"></AccordionItem>
</AccordionItems>
</SfAccordion>Use when you need to perform actions during expand/collapse:
<SfAccordion>
<AccordionEvents Expanding="OnExpanding" Expanded="OnExpanded"></AccordionEvents>
<AccordionItems>
<AccordionItem Header="Item 1" Content="Content 1"></AccordionItem>
</AccordionItems>
</SfAccordion>
@code {
public void OnExpanding(ExpandEventArgs args) {
// Perform validation or load data before expansion
}
public void OnExpanded(ExpandedEventArgs args) {
// Handle post-expansion actions
}
}Use when items need to be added or removed at runtime:
<SfButton @onclick="AddItem">Add Item</SfButton>
<SfAccordion>
<AccordionItems>
@foreach (var item in Items)
{
<AccordionItem Header="@item.Header" Content="@item.Content"></AccordionItem>
}
</AccordionItems>
</SfAccordion>
@code {
List<ItemData> Items = new List<ItemData>();
void AddItem() {
Items.Add(new ItemData { Header = "New Item", Content = "New Content" });
}
}Use when you need hierarchical collapsible sections:
<SfAccordion>
<AccordionItems>
<AccordionItem Header="Parent Item">
<ContentTemplate>
<SfAccordion>
<AccordionItems>
<AccordionItem Header="Child Item 1" Content="Child Content 1"></AccordionItem>
<AccordionItem Header="Child Item 2" Content="Child Content 2"></AccordionItem>
</AccordionItems>
</SfAccordion>
</ContentTemplate>
</AccordionItem>
</AccordionItems>
</SfAccordion>| Property | Type | Default | Description |
|---|---|---|---|
ExpandMode | ExpandMode | Multiple | Controls whether single or multiple items can be expanded |
ExpandedIndices | int[] | null | Array of indices for initially expanded items |
LoadOnDemand | bool | true | Whether to load content on demand or at initial render |
| Property | Type | Default | Description |
|---|---|---|---|
Header | string | null | Text content for the accordion header |
Content | string | null | Text content for the accordion panel |
HeaderTemplate | RenderFragment | null | Custom template for the header |
ContentTemplate | RenderFragment | null | Custom template for the content |
Expanded | bool | false | Whether the item is initially expanded |
Disabled | bool | false | Whether the item is disabled |
Visible | bool | true | Whether the item is visible |
IconCss | string | null | CSS class for custom header icon |
CssClass | string | null | Custom CSS class for the item |
Configure expand/collapse animations using AccordionAnimationSettings:
<SfAccordion>
<AccordionAnimationSettings>
<AccordionAnimationExpand Effect="AnimationEffect.SlideDown" Duration="400"></AccordionAnimationExpand>
<AccordionAnimationCollapse Effect="AnimationEffect.SlideUp" Duration="400"></AccordionAnimationCollapse>
</AccordionAnimationSettings>
<AccordionItems>
<!-- Items here -->
</AccordionItems>
</SfAccordion>Available animation effects: SlideDown, SlideUp, FadeIn, FadeOut, FadeZoomIn, FadeZoomOut, ZoomIn, ZoomOut, None
Perfect for FAQs where only one answer should be visible at a time:
ExpandMode.SingleExpanded="true"Create guided workflows with sequential steps:
Disabled property to prevent skipping stepsExpanded property to control which step is activeExpanding event to validate before moving to next stepOrganize navigation items hierarchically:
IconCss for menu iconsClicked event for navigation actionsOrganize large amounts of content in compact form:
LoadOnDemand="true" for performanceMultiple expand mode for flexible viewingDisplay structured data in collapsible sections:
foreach~30 seconds. Free. No account. Every finding cites a rule and a line of evidence.