This content is revealed when the button is pressed. The button updates its aria-expanded state and the label reflects the current action.
This content is revealed purely with CSS when the checkbox is checked. No JavaScript is required for this interaction.
It's a lightweight pattern that relies on CSS sibling selectors.