@libertypie/vue-svg-img
v1.0.8
Published
A super lightweight vue library for injecting svg as inline
Downloads
6
Maintainers
Readme
Intro
A super light weight and fast vue plugin for injecting svg as inline on runtime
Install
yarn
yarn add @libertypie/vue-svg-img
npm
npm i @libertypie/vue-svg-img
Usage
vue 2
import vueSvgImg from 'vue-img-svg'
Vue.use(vueSvgImg)
vue 3
import vueSvgImg from 'vue-img-svg'
createApp(App)
.use(vueSvgImg)
...
.mount('#app');
Using in template
<img-svg src="https://libertypie.com/assets/img/logo.svg" class="logo" />