Expand / Collapse Widget Demo
Accessible expand/collapse widgets. Each widget is wrapped in a div.example and the controlled content container uses the class details.
This widget is open by default to demonstrate interactive content inside a details container.
Tip: Buttons use aria-expanded and control the div.details element via aria-controls. The scripts animate height for smooth transitions while keeping the region accessible to assistive technologies.