Each widget is wrapped with a container classed "example". The controlled content containers use the class "details". Use the buttons to expand or collapse content.
Summary: This content is initially collapsed. It becomes visible when the button is activated.
Tips for accessibility:
This demonstration uses native buttons for accessible keyboard interaction.
Expanded example: This instance starts expanded to show the open state. You can collapse it using the same button.
Content here could be long form, additional controls, or any other information you want to reveal on demand.
The content container has the required class "details".