Expand / Collapse widget examples

Each widget is wrapped with a div.example, and the area it controls uses the class "details". Use the button to toggle content.

Simple details

A concise expand/collapse region.

Details with interactive content

This example contains links and a form control inside the details region.

Animated reveal

This demonstrates a smooth height transition for longer content.