Expand & Collapse Widgets

Each widget below is wrapped in a container with the class "example". The content panels controlled by the toggles use the class "details". Buttons use aria-expanded and aria-controls for accessibility.