Accordion
NewOrganize related content into sections that open when you need them.
Getting started
Open one section at a time. Use the buttons below to control the active section from outside the accordion.
Install Avero UI, import the standalone components you need and add them to your template. Each component works with Angular's reactive state.
Read the installation guide →Use CSS custom properties to adjust colors, borders and spacing. You can style a single instance or apply shared tokens across your application.
Tab moves through enabled headers and open content. Enter or Space toggles a panel. Up/Down move between headers, while Home/End jump to the first or last enabled header.
Getting started is open.
Multiple & dynamic panels
Keep several sections open. These panels are generated with an Angular for block and use custom header content.
Define the visual direction, explore layouts and create a shared component language.
Build reusable components, connect your data and validate behavior with automated tests.
Review the release, publish the application and gather feedback from your team.
Lazy content
The editor is created only when you first open the panel. Type a note, close the panel and reopen it: your draft stays in place.
Usage and API
Import AvAccordion, AvAccordionPanel, AvAccordionHeader and AvAccordionContent from avero-ui. Place one header and one content component inside each panel. Add AvAccordionLazy when you use a lazy template.
<av-accordion inputId="faq" [(value)]="active" [multiple]="false">
<av-accordion-panel value="setup">
<av-accordion-header>Getting started</av-accordion-header>
<av-accordion-content>Your content goes here.</av-accordion-content>
</av-accordion-panel>
<av-accordion-panel value="settings">
<av-accordion-header>Settings</av-accordion-header>
<av-accordion-content>
<ng-template avAccordionLazy>
<app-settings />
</ng-template>
</av-accordion-content>
</av-accordion-panel>
</av-accordion>