Expand / Collapse Widget

Collapsed
Expanded

Active details

This example starts expanded to show how the open state looks. The button text and aria-expanded reflect the state.

Try toggling either button. The controlled container always uses the "details" class as requested.