1.0.8 • Published 3 years ago

@libertypie/vue-svg-img v1.0.8

Weekly downloads
-
License
MIT
Repository
github
Last release
3 years ago

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" />
1.0.8

3 years ago

1.0.6

3 years ago

1.0.5

3 years ago

1.0.4

3 years ago

1.0.2

3 years ago

1.0.3

3 years ago

1.0.1

3 years ago

1.0.0

3 years ago