
Security News
New CVE Forecasting Tool Predicts 47,000 Disclosures in 2025
CVEForecast.org uses machine learning to project a record-breaking surge in vulnerability disclosures in 2025.
butane-accordion
Advanced tools
A lightweight accessible accordion JS library.
Install butane-accordion, and add it to your package.json
dev dependencies.
$ npm install butane-accordion --save-dev
Then import
it into the file where you'll use it.
import ButaneAccordion from 'butane-accordion'
ButaneAccordion.init()
By default only one accordion panel can be opened at a time. To allow for multiple panels to be open, add data-butane-accordion-multiple
along side data-butane-accordion
to allow for that type of functionality.
<dl role="presentation" data-butane-accordion data-butane-accordion-multiple>
...
</dl>
Below is the minimum required elements and attributes needed.
<dl role="presentation" data-butane-accordion>
<dt role="heading" aria-level="2">
<button aria-expanded="false" aria-controls="sect1" id="button1">Section 1</button>
</dt>
<dd id="sect1" aria-labeledby="button1" hidden>
<p>Lorem ipsum dolor sit amet, consectetur adipisicing elit. Distinctio sunt unde dignissimos fuga voluptatum molestias qui aut, temporibus beatae officia! Voluptate aspernatur dignissimos maxime qui temporibus minus beatae magni autem.</p>
</dd>
</dl>
MIT. © 2017 Alex Carpenter
FAQs
A lightweight accessible accordion JS library
The npm package butane-accordion receives a total of 2 weekly downloads. As such, butane-accordion popularity was classified as not popular.
We found that butane-accordion demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
CVEForecast.org uses machine learning to project a record-breaking surge in vulnerability disclosures in 2025.
Security News
Browserslist-rs now uses static data to reduce binary size by over 1MB, improving memory use and performance for Rust-based frontend tools.
Research
Security News
Eight new malicious Firefox extensions impersonate games, steal OAuth tokens, hijack sessions, and exploit browser permissions to spy on users.