An expand/collapse widget hides non-critical content until the user chooses to reveal it. The native HTML details/summary pattern provides built-in accessibility and toggling behavior without JavaScript.
- Click the summary row to expand or collapse.
- Keyboard users can focus the summary and press Space/Enter.
- Screen readers announce the expanded/collapsed state.