Security News
Oracle Drags Its Feet in the JavaScript Trademark Dispute
Oracle seeks to dismiss fraud claims in the JavaScript trademark dispute, delaying the case and avoiding questions about its right to the name.
@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 0 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.
Security News
Oracle seeks to dismiss fraud claims in the JavaScript trademark dispute, delaying the case and avoiding questions about its right to the name.
Security News
The Linux Foundation is warning open source developers that compliance with global sanctions is mandatory, highlighting legal risks and restrictions on contributions.
Security News
Maven Central now validates Sigstore signatures, making it easier for developers to verify the provenance of Java packages.