Sections that open one at a time, for content most readers will skip.
Right for a FAQ or a long settings page; wrong for anything a reader needs to compare, and wrong for anything they must not miss - collapsed content is content most people never see, and it is invisible to a page search.
The panel is hidden rather than removed, so its text stays findable in the DOM, and it keeps a region role labelled by its own trigger so a screen reader can tell which section it landed in.
import { Accordion } from '@redrob-labs/ui';
| Prop | Type | Notes |
|---|---|---|
items |
AccordionItem[] |
|
multiple |
boolean |
Allow several open at once. One at a time by default. |
defaultOpen |
string | string[] |
Id, or ids, open on first render. |
className |
string |