https://github.com/wide/modulus-accordion
Accordion component for Modulus
https://github.com/wide/modulus-accordion
modulus
Last synced: 13 days ago
JSON representation
Accordion component for Modulus
- Host: GitHub
- URL: https://github.com/wide/modulus-accordion
- Owner: wide
- License: mit
- Created: 2020-05-29T15:04:43.000Z (over 5 years ago)
- Default Branch: main
- Last Pushed: 2022-02-07T09:25:45.000Z (about 4 years ago)
- Last Synced: 2025-10-08T15:21:30.159Z (4 months ago)
- Topics: modulus
- Language: JavaScript
- Homepage:
- Size: 9.77 KB
- Stars: 0
- Watchers: 7
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: readme.md
Awesome Lists containing this project
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`:
```js
import modulus from '@wide/modulus'
import Accordion from '@wide/modulus-accordion'
modulus.component('accordion', Accordion)
```
Import base `scss` styles:
```scss
@use '@wide/modulus-accordion';
```
And use the provided `twig` template:
```html
{% include '@wide::modulus-accordion' with {
id: 'accordion-1',
items: [{
title: 'Title 1',
body: 'Body 1'
}]
} %}
```
## Authors
- **Aymeric Assier** - [github.com/myeti](https://github.com/myeti)
- **Julien Martins Da Costa** - [github.com/jdacosta](https://github.com/jdacosta)
## License
This project is licensed under the MIT License - see the [licence](licence) file for details