
Security News
PodRocket Podcast: Inside the Recent npm Supply Chain Attacks
Socket CEO Feross Aboukhadijeh discusses the recent npm supply chain attacks on PodRocket, covering novel attack vectors and how developers can protect themselves.
@economist/component-accordion
Advanced tools
Collapse a series of panels, when one of those panels is expanded
Collapse a series of panels, when one of those panels is expanded
This component expects an ES6 environment, and so if you are using this in an app, you should drop in a polyfill library - it has been tested with babel-polyfill but core-js or es6-shim may also work.
The default export is a React Component, so you can simply import the component and use it within some JSX, like so:
import { Accordion, Panel } from '@economist/component-accordion';
return (
<Accordion>
<Panel header={<h2>Search Engines</h2>}>
<a href="http://google.com">Google</a>
<a href="http://bing.com">Bing</a>
<a href="http://yahoo.com">Yahoo</a>
</Panel>
</Accordion>
);
For more examples on usage, see src/example.es6
.
npm i -S @economist/component-accordion
npm test
FAQs
Collapse a series of panels, when one of those panels is expanded
The npm package @economist/component-accordion receives a total of 26 weekly downloads. As such, @economist/component-accordion popularity was classified as not popular.
We found that @economist/component-accordion demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 5 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.
Security News
Socket CEO Feross Aboukhadijeh discusses the recent npm supply chain attacks on PodRocket, covering novel attack vectors and how developers can protect themselves.
Security News
Maintainers back GitHub’s npm security overhaul but raise concerns about CI/CD workflows, enterprise support, and token management.
Product
Socket Firewall is a free tool that blocks malicious packages at install time, giving developers proactive protection against rising supply chain attacks.