
Security News
Socket Integrates With Bun 1.3’s Security Scanner API
Socket now integrates with Bun 1.3’s Security Scanner API to block risky packages at install time and enforce your organization’s policies in local dev and CI.
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
The npm package accordie receives a total of 5 weekly downloads. As such, accordie popularity was classified as not popular.
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 now integrates with Bun 1.3’s Security Scanner API to block risky packages at install time and enforce your organization’s policies in local dev and CI.
Research
The Socket Threat Research Team is tracking weekly intrusions into the npm registry that follow a repeatable adversarial playbook used by North Korean state-sponsored actors.
Security News
A data handling bug in OSV.dev caused disputed CVEs to disappear from vulnerability feeds until a recent fix restored over 500 advisories.