Skip to content

diatem-net/vue-svg-icon

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Diatem | Vue SVG Icon

Diatem's Vue 3 SVG icon component, with Vite

Features

Installation

npm i @diatem-net/vue-svg-icon

How to Use

Global Registration

main.js

import SvgIcon from '@diatem-net/vue-svg-icon'
import '@diatem-net/vue-svg-icon/dist/style.css'

createApp(App)
  .use(router)
  .use(TestComponent)
  .mount("#app");

OR

Local Registration

HelloWorld.vue

<script setup>
import SvgIcon from '@diatem-net/vue-svg-icon'
import '@diatem-net/vue-svg-icon/dist/style.css'

<template>
  <SvgIcon name="icon-cart" size="md"/>
</template>

</script>

About

Diatem's Vue 3 SVG icon component, with Vite

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published