@ztrehagem/vue-accordion
v1.0.0-beta.1
Published
Styleless accordion component for Vue.js.
Downloads
424
Readme
@ztrehagem/vue-accordion
Live Demo: https://vue-accordion.lib.ztrehagem.dev/
Installation
npm install @ztrehagem/vue-accordion
Usage
(Recommended/Optional) Import default style.
This is a minimum style for achieving the behavior of accordion. (source)
import "@ztrehagem/vue-accordion/style.css";
Import and use VueAccordion component.
import { VueAccordion } from "@ztrehagem/vue-accordion"; export default { components: { VueAccordion, }, };
<VueAccordion :expanded="isExpanded"> <strong>Hello World!</strong> </VueAccordion>
See src for more examples.