DocumentationData PresentationAccordion

Accordion

A vertically stacked set of interactive headings that each reveal a section of content.

Usage

FAccordion(...)

FAccordion(
  controller: FAccordionController(min: 1, max: 2), // or FAccordionController.radio()
  items: [
    FAccordionItem(
      title: const Text('Is it accessible?'),
      child: const Text('Yes. It adheres to the WAI-ARIA design pattern.'),
    ),
  ],
),

Examples

With Radio Behaviour

With Multi-select Behaviour