Expand / Collapse Widget Demo

This page demonstrates multiple expand/collapse widgets. Each widget is wrapped in a container with the class "example". The content container that is shown/hidden uses the class "details".

1) Native Details / Summary

This is a native HTML expand/collapse widget using the details and summary elements. The container for the controlled content is the details element and it has the class "details".

3) Additional Details

This is another native details/summary widget. The content container remains the details element itself, which carries the "details" class.