vue-coolicons
A really lightweight Vue component for the coolicons icon library with Typescript support.
Usage
- Install the dependency.
yarn add @coolicons/vue
- Use it in your component
<!-- my-component.vue -->
<template>
<my-icon is="caret_down" />
</template>
<script setup>
// you can call it whatever you want [:
import MyIcon from '@coolicons/vue'
import '@coolicons/vue/dist/style.css'
</script>
- Or register globally
// main.ts
import Vue from 'vue'
import MyIcon from '@coolicons/vue'
import '@coolicons/vue/dist/style.css'
Vue.component('my-icon', MyIcon)