Accordion

As defined by the W3C:

An accordion is a vertically stacked set of interactive headings that each contain a title, content snippet, or thumbnail representing a section of content. The headings function as controls that enable users to reveal or hide their associated sections of content. Accordions are commonly used to reduce the need to scroll when presenting multiple sections of content on a single page.

fluent-accordion

Setup

import {
    provideFluentDesignSystem,
    fluentAccordion,
    fluentAccordionItem
} from "@fluentui/web-components";

provideFluentDesignSystem()
    .register(
        fluentAccordion(),
        fluentAccordionItem()
    );

Example

Additional Resources

Please see the Blazor documentation and demo site for more information.