This is a simple, accessible expand/collapse widget. Press the button to reveal or hide the content. The button's aria-expanded state updates to reflect the current state, and the related content is contained in a container with the class "details".
You can customize styling, spacing, and content inside the details panel. This example demonstrates wrapping each widget in an "example" container and using a "details" class for the collapsible content.