A styleless accordion component of Vue.js.


  1. Install

    npm install @ztrehagem/vue-accordion
  2. Import default style (optional)

    // for css loaders
    import '@ztrehagem/vue-accordion/dist/vue-accordion.css'


    // for css preprocessors
    @import '~@ztrehagem/vue-accordion/dist/vue-accordion.css'
  3. Use as component

    import VueAccordion from '@ztrehagem/vue-accordion'
    export default {
      components: {
    <VueAccordion :expanded="isExpanded">
      <strong>Hello World!</strong>

Development setup

npm install

Compiles and hot-reloads for development

npm run dev

Compiles and minifies for publish

npm run build

Lints and fixes files

npm run lint

Customize configuration

See Configuration Reference.