An expand/collapse widget lets users reveal additional information on demand. The native <details> element provides this behavior without extra JavaScript and is accessible by default.
- Click or press Enter/Space on the summary to toggle.
- The content below is the controlled section inside the
detailscontainer.