Expand / Collapse Widget Demo

Examples of an accessible expand/collapse widget. Each widget is wrapped in a div.example and the content container uses the class details.

This example is rendered open by default. It demonstrates the initial-open state. The script will respect data-open="true" on the details container to initialize it as open.