An expand/collapse widget is a UI control that reveals additional content on demand. The native HTML <details> element provides built-in accessibility and keyboard interaction.
- Click or press Enter/Space on the summary to toggle.
- The widget maintains its open/closed state per instance.
- No JavaScript required for basic interaction.