An expand/collapse widget reveals additional content on demand. Using the HTML <details> element provides built-in accessibility and keyboard support.
- Click the summary to toggle the content.
- Press Space or Enter when focused to toggle.
- The open state can be styled via
details[open].