Expand / Collapse Widgets Demo

ARIA-controlled widget

This widget uses a button to control the visibility of the content. It demonstrates accessible ARIA attributes for expand/collapse functionality.

  • Accessible via aria-expanded and aria-controls
  • Content area uses class="details" as the controlled container
  • Animated height transitions for a smooth UX

CSS-only widget