<link rel="stylesheet" href="/styles-2YLIEYNE.css">
This site uses cookies from Google to deliver its services and to analyze traffic.
More details

Overview for accordion

Now Available in Angular Aria!

The Angular team has introduced a new low-level component library called Angular Aria. Consider using the Angular Aria accordion component as an alternative to this CDK component.

An accordion is a component with one or more expandable sections. CDK accordion provides a foundation upon which you can build your own custom accordion component. CDK accordion provides logic for the accordion interaction pattern without any styles. You can customize the accordion's appearance based on your application's needs.

Accordion overview

The CDK accordion doesn't come with any accessibility treatment, because it doesn't have control over its markup. We recommend to set the accordion trigger element as a role="button" while the body container as a role="region". Furthermore, the trigger should have aria-controls pointing to the body and aria-expanded based on the expanded state, while the body should have an aria-labelledby that points to the header. See the example above for a sample implementation.

Overview Content
Azure & Blue theme selected.