v-accordion-material
v1.0.0
Published
This is a material theme for [v-accordion](https://github.com/LukaszWatroba/v-accordion). It follows the material design guideline for [expansion panels](https://material.io/guidelines/components/expansion-panels.html).
Downloads
3
Readme
V-Accordion Material
This is a material theme for v-accordion. It follows the material design guideline for expansion panels.
With v-accordion-material, you can also create expansion panels for angular material using v-accordion - (an accordion module for angularjs)
DEMO
Installation instructions
Bower
Run bower install v-accordion-material --save
Npm
Run npm i v-accordion-material
Yarn
Run yarn add v-accordion-material
Manual Install
- Download the latest release of v-accordion-material
- Download v-accordion
Usage
Include the files for v-accordion
, and v-accordion-material
in your project
<link href="v-accordion.css" rel="stylesheet" />
<link href="v-accordion-material.css" rel="stylesheet" />
<script src="v-accordion.js"></script>
Follow the instructions for v-accordion to learn to use v-accordion
Setting Material theme
In order to use this theme, set v-accordion-material
as the class name of <v-accordion>
as shown below:
<v-accordion class="v-accordion-material">
...
</v-accordion>
md-title and md-summary
According to the material design guidelines the header should contain a header and a summary. This can be implemented by using the md-title and md-summary components in the v-pane-header as shown below
<v-pane-header>
<div class="md-title">Title</div>
<div class="md-summary">The summary of the content</div>
</v-pane-header>