Expand/Collapse Widget Demo

This page demonstrates a simple expand/collapse widget. Each widget is wrapped in a container with the class "example". The content container uses the class "details".

Example 1: Simple toggle
Example 2: Expanded by default

This content starts visible by default. Click the button to collapse it.

All content inside this container will be shown or hidden when toggled.