Problem
Build an accordion for FAQ sections.
Requirements
- List of
{ id, title, content }items. - Click header to expand/collapse panel.
- Single-expand mode (default) or multi-expand mode.
aria-expanded,aria-controls, animated height optional.- Arrow Up/Down moves focus between headers.
Hints / Approach
- State:
Setof open ids (multi) or singleopenIdstring. - Panel visibility: conditional render or CSS
max-heighttransition. - Header is
<button>inside<h3>per WAI-ARIA accordion pattern.