Skip to content

Latest commit

 

History

History
25 lines (19 loc) · 547 Bytes

README.md

File metadata and controls

25 lines (19 loc) · 547 Bytes

vue-material-icon

Vue.js (2.5+) functional component to display material icon.

Installation

Using NPM:

npm install vue-material-icon

Usage

In your main.js file:

import VueMaterialIcon from 'vue-material-icon'

Vue.component(VueMaterialIcon.name, VueMaterialIcon)

In your components template:

  <vue-material-icon name="favorite" :size="32" :color="red"></vue-material-icon>
  • name - material icon name which can be find here
  • size - icon size in px (24 is default)