
Research
/Security News
npm Author Qix Compromised via Phishing Email in Major Supply Chain Attack
npm author Qix’s account was compromised, with malicious versions of popular packages like chalk-template, color-convert, and strip-ansi published.
@pnx-mixtape/accordion
Advanced tools
Documentation and examples: Accordion
npm install @pnx-mixtape/accordion --save-dev
CSS
@import '@pnx-mixtape/accordion';
@import url('dist/accordion.css');
<link href="dist/accordion.css" rel="stylesheet" type="text/css">
Web Components
Web Components are self defined, simply import the desired feature. These do not use the Shadow DOM. External CSS applies.
import '@pnx-mixtape/accordion/DetailsBase';
and be sure to include <mx-details>
around the <details />
tag.import '@pnx-mixtape/accordion/DetailsBase';
and be sure to include <mx-detailsmobile>
around the <details />
tag.import '@pnx-mixtape/accordion/DetailsBase';
and be sure to include <mx-detailsdiv class="accordion">
instead of the <details />
tag.<mx-details>
<details class="accordion">
<summary class="accordion__toggle">Title</summary>
<div class="accordion__content">
<p>Body content</p>
</div>
</details>
</mx-details>
See twig files for all HTML examples.
Vanilla JS (to be deprecated)
Javascript is used to handle opening and closing the accordion when the user prints the screen. This sets the open attribute onbeforeprint
and closes it onafterprint
window events. The content's ID is also set via js.
import { Accordion, AccordionDiv } from '@pnx-mixtape/accordion';
import AccordionDiv from '@pnx-mixtape/accordion/accordion-div';
<script src="dist/accordion.js" type="text/javascript"></script>
<details class="accordion" data-accordion>
<summary class="accordion__toggle">Title</summary>
<div class="accordion__content">
<p>Body content</p>
</div>
</details>
FAQs
accordion component
We found that @pnx-mixtape/accordion demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 0 open source maintainers 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.
Research
/Security News
npm author Qix’s account was compromised, with malicious versions of popular packages like chalk-template, color-convert, and strip-ansi published.
Research
Four npm packages disguised as cryptographic tools steal developer credentials and send them to attacker-controlled Telegram infrastructure.
Security News
Ruby maintainers from Bundler and rbenv teams are building rv to bring Python uv's speed and unified tooling approach to Ruby development.