Each widget is wrapped in a div.example. The controlled content container uses the details class.
This content is controlled by the button above.
aria-expanded and aria-controls
The script measures the content’s height, temporarily sets an explicit height, then transitions
to the target height.
If you prefer no animation, you can remove the animation helper in the script and just toggle
hidden.
These are placeholder “advanced settings”: