An accessible accordion component to help structure large amounts of content on a page
* Standalone JS is used on projects that are not set up to handle
ES6. To use this version you will need to download the compiled
project. The same process should be
followed with the CSS if it cannot process through the NPM package.
This component accepts two arguments, the selector for the accordion container and an object containing optional callbacks.
npm install @10up/component-accordion --save
Called after the accordion is initialized on page load