An accordion hides or reveals additional content when clicked on.
Live exampleContent goes in here!
Expand all / Collapse all button
There is an optional, custom button for Accordion blocks that can either expand or collapse all accordion panels on a page. It can be implemented with the code snippet below using a Custom HTML block. This button should only be used once on any given page, and preferably above the first Accordion block on the page.
Content for accordion 1
Content for accordion 2
Content for accordion 3
Second accordion block
Content
Content
Code
<div class="flex justify-end mx-auto" style="max-width:900px;"> <button type="button" class="toggle-all btn btn-sm is-style-secondary mr-0 default-transition"> Expand all </button> </div>