An expand/collapse widget reveals additional content on demand. The native details element provides built‑in keyboard and screen reader support via its summary control.
Using the native element keeps markup minimal while providing accessible defaults. You can style the summary and the open state as needed.