Expand/Collapse Widgets

Native Details Element

This example uses the native <details> and <summary> elements to provide built-in expand/collapse functionality.

Show keyboard shortcuts

Custom Toggle Button

This example uses a custom button paired with ARIA attributes to manage an expandable region.