Accessible expand/collapse examples. Each widget is wrapped in a container with class "example". The controlled content container uses the class "details".
Overview
This content is hidden by default. The button above controls visibility using aria-expanded and aria-controls attributes. The details container uses the class "details".
Tip: Press Enter or Space while focused on the button to toggle.
Release 1.2.0
Improved accessibility and keyboard support for widgets.
Animation smoothing for expand/collapse transitions.