@coolicons/vue
TypeScript icon, indicating that this package has built-in type declarations

1.0.6 • Public • Published

vue-coolicons

A really lightweight Vue component for the coolicons icon library with Typescript support.

Usage

  1. Install the dependency.
yarn add @coolicons/vue
  1. 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>
  1. 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)

Readme

Keywords

none

Package Sidebar

Install

npm i @coolicons/vue

Weekly Downloads

3

Version

1.0.6

License

none

Unpacked Size

1.84 MB

Total Files

9

Last publish

Collaborators

  • henrycunh