Expand/Collapse Widget Demo

This page demonstrates two separate expandable widgets. Each widget is wrapped in a container with the class example, and the content container uses the class details.

Topic B starts expanded. You can click the button to collapse this section.

  1. Initial state is open
  2. Click to collapse and hide content
  3. Aria attributes stay in sync