@wide/modulus-accordion

2.1.2 • Public • Published

Modulus Accordion

Enhanced accordion component, to be used with @wide/modulus.

Install

npm install @wide/modulus-accordion --save

Usage

Register this component using Modulus:

import modulus   from '@wide/modulus'
import Accordion from '@wide/modulus-accordion'

modulus.component('accordion', Accordion)

Import base scss styles:

@use '@wide/modulus-accordion';

And use the provided twig template:

{% include '@wide::modulus-accordion' with {
  id: 'accordion-1',
  items: [{
    title: 'Title 1',
    body: 'Body 1'
  }]
} %}

Authors

License

This project is licensed under the MIT License - see the licence file for details

Readme

Keywords

none

Package Sidebar

Install

npm i @wide/modulus-accordion

Weekly Downloads

8

Version

2.1.2

License

MIT

Unpacked Size

16 kB

Total Files

10

Last publish

Collaborators

  • gflandin
  • myeti
  • jmartinsdacosta
  • robiseb