Components / Accordion

Accordion

Single or multiple expandable sections with controlled state.

example.component.html
html
<aevko-accordion [items]="sections" type="multiple" [(value)]="open" />

Installation

npx aevko-ui@latest add accordion --yes

Source ownership

Customization

Tune trigger height, dividers, typography and chevron motion in the installed accordion stylesheet. State and heading semantics remain in the template.

Edit locallyThe installed template and stylesheet are application code, not a black box.
Theme semanticallyOverride --aevko-* tokens or ordinary classes without !important.

API reference

Property or slotTypeDefaultDescription
itemsreadonly AevkoAccordionItem[]requiredSections identified by a stable id, label and content.
type'single' | 'multiple''single'Controls whether one or several sections may stay open.
valuemodel<readonly string[]>[]Ids of the expanded sections; supports two-way binding.
collapsiblebooleantrueAllows the last expanded section to close.
disabledbooleanfalseDisables every accordion trigger.
idstring'aevko-accordion'Prefix used to associate triggers and panels.
headingLevel2 | 3 | 4 | 5 | 62Semantic heading level rendered for each trigger.

Accessibility contract

Accessibility

Included behavior

  • Each heading owns a native button with aria-expanded and aria-controls.
  • Disabled sections stay understandable.

Your responsibility

Choose a headingLevel that follows the page outline and write labels that describe the hidden section.

Back to all components