
Research
/Security News
DuckDB npm Account Compromised in Continuing Supply Chain Attack
Ongoing npm supply chain attack spreads to DuckDB: multiple packages compromised with the same wallet-drainer malware.
@10up/component-accordion
Advanced tools
View official documentation for this package
npm install --save @10up/component-accordion
@import url("@10up/component-accordion");
The styles can be imported into your existing codebase by using PostCSS imports, or by including the standalone CSS file in your project.
Create a new instance by supplying the selector to use for the accordion and an object containing any necessary callback functions.
import Accordion from '@10up/component-accordion';
new Accordion( '.accordion', {
onCreate: function() {
console.log( 'onCreate callback' );
},
onOpen: function( { link, content, heading } ) {
console.log( 'onOpen callback' );
},
onClose: function( { link, content, heading } ) {
console.log( 'onClose callback' );
},
onToggle: function( { link, content, heading } ) {
console.log( 'onToggle callback' );
}
} );
Example implementations at: https://baseline.10up.com/component/accordion/
Active: 10up is actively working on this, and we expect to continue work for the foreseeable future including keeping tested up to the most recent version of WordPress. Bug reports, feature requests, questions, and pull requests are welcome.
FAQs
Accessible accordion component.
The npm package @10up/component-accordion receives a total of 667 weekly downloads. As such, @10up/component-accordion popularity was classified as not popular.
We found that @10up/component-accordion demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 7 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
Ongoing npm supply chain attack spreads to DuckDB: multiple packages compromised with the same wallet-drainer malware.
Security News
The MCP Steering Committee has launched the official MCP Registry in preview, a central hub for discovering and publishing MCP servers.
Product
Socket’s new Pull Request Stories give security teams clear visibility into dependency risks and outcomes across scanned pull requests.