/ Menu

A Simple accordion menu component in Vue 2

A Simple accordion menu component in Vue 2

vue-accordion-menu

Simple accordion menu component in Vue 2.

Live Demo

https://weichiachang.github.io/vue-accordion-menu/dist/

Installation

npm install --save vue-accordion-menu

Default import

Install all the components:

import Vue from 'vue'
import VueAccordionMenu from 'vue-accordion-menu'

Vue.use(VueAccordionMenu)

Use specific components:

import Vue from 'vue'
import { AccordionMenu } from 'vue-accordion-menu'

Vue.component('AccordionMenu', AccordionMenu)

⚠️ A css file is included when importing the package. You may have to setup your bundler to embed the css in your page.

GitHub