npm.io
1.2.0 • Published 9 years ago

vue-feather-icon

Licence
MIT
Version
1.2.0
Deps
0
Vulns
0
Weekly
0
Stars
108

vue-feather-icon

Vue component for Feather

install

npm install vue-feather-icon

usage

global component
// main.js
import Vue = from 'vue'
import VueFeatherIcon from 'vue-feather-icon'

Vue.use(VueFeatherIcon)
<tempalte>
  <feather-activity></feather-activity>
  <!-- or -->
  <feather-icon type="activity"></feather-icon>
</tempalte>
local component
<script>
  import { Activity } from 'vue-feather-icon'

  export default {
    components: {
      ActivityIcon: Activity
    }
  }
</script>

<tempalte>
  <activity-icon></activity-icon>
</tempalte>

Keywords