Skip to content

wide/modulus-accordion

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

14 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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