
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.
Custom React Accordion Component
Install with Yarn
$ yarn add accordie
or NPM
$ npm i accordie
import React from 'react'
import ReactDOM from 'react-dom'
import { Accordie, Panel } from 'accordie'
const App = () => {
return (
<Accordie>
<Panel
Heading={<div>Heading 1</div>}
Content={<div>Lorem ipsum dolor sit amet, consectetur adipisicing elit.</div>}
/>
<Panel
Heading={<div>Heading 2</div>}
Content={<div>Lorem ipsum dolor sit amet, consectetur adipisicing elit.</div>}
/>
</Accordie>
)
}
ReactDOM.render(<App />, document.getElementById('root'))
<Accordie>
If customStyle is true classNames overrides all the actual classes.
<Accordie
customStyle
classNames={{
panel: 'panel',
heading: 'heading',
content: 'content',
open: 'open',
close: 'close'
}}
>
<Panel>
Heading and Content props could be a String or a React Component.
<Panel
Heading='Heading'
Content={<div>Content</div>}
/>
Feel free to contribute. Open a new issue, or make a pull request.
FAQs
Custom React Accordion Component
We found that accordie demonstrated a healthy version release cadence and project activity because the last version was released less than 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.
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.