@wide/modulus-accordion
v2.1.2
Published
Enhanced accordion component, to be used with `@wide/modulus`.
Downloads
466
Keywords
Readme
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
- Aymeric Assier - github.com/myeti
- Julien Martins Da Costa - github.com/jdacosta
License
This project is licensed under the MIT License - see the licence file for details