Accordion

This component is a Accordion. It allows the user to click the title and toggle open and closed the information. The accordion can be rendered starting open if the item variable expanded is set to true. The container title text is also variable. The level variable need to be passed a heading value ie 3, else it will default to h2.

Requires:

  • dist/js/foreach-nodelist/vendors/foreach-nodelist.js
  • dist/js/toggle-class.bundle.js

Accordion heading (optional)