A styleless accordion component of Vue.js
@ztrehagem/vue-accordion
A styleless accordion component of Vue.js.
Usage
-
Install
npm install @ztrehagem/vue-accordion
-
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'
-
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