A styleless accordion component of Vue.js

@ztrehagem/vue-accordion

A styleless accordion component of Vue.js.

Usage

  1. Install

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

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

    or

    // 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
      }
    }
    
    <VueAccordion :expanded="isExpanded">
      <strong>Hello World!</strong>
    </VueAccordion>
    

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.