Accordion
Collapsible sections — a FAQ, or answers a reader picks from.
::accordion around
::accordion-item blocks.
Usage
API
No props.
Slots
| Slot | What goes in it |
|---|---|
default | ::accordion-item blocks |
Notes
type="multiple" on purpose: a FAQ where opening one answer closes the one you
were half-way through is a worse FAQ.
On reka-ui's primitives, like the tree and the tabs, for the same reason — a
hand-rolled disclosure has no keyboard handling, no aria-expanded and no
relationship between the trigger and the region it opens.
Was this page helpful?