Expand/Collapse Widgets

Two accessible patterns: the native details/summary element and a button-controlled panel. Each widget is wrapped in a container with the "example" class, and the content container uses the "details" class.

Native details/summary

Learn more about cookies

Cookies help websites remember you. They store small pieces of data in your browser, such as your preferences and login state.

Tip: Use your browser’s settings to clear cookies or block third-party cookies for more privacy.

Button-controlled panel