Expand and Collapse Widgets

Below are two variations of accessible expand/collapse patterns. The first uses the native <details> element, while the second demonstrates a custom toggle button that controls a collapsible region.

Native Details/Summary Widget

Design Guidelines at a Glance

The native <details> element is a semantic way to reveal supporting information without extra JavaScript. Use it for lightweight disclosure widgets.

Custom Toggle Button with Controlled Region