@seregpie/vuesvg

19.0.0 • Public • Published

VueSvg

Loads a SVG image as an inline SVG.

setup

npm

npm i @seregpie/vuesvg

ES module

Register the component globally.

import Vue from 'vue';
import VueSvg from '@seregpie/vuesvg';

Vue.component(VueSvg.name, VueSvg);

or

Register the component in the scope of another component.

import VueSvg from '@seregpie/vuesvg';

export default {
  components: {
    [VueSvg.name]: VueSvg,
  },
};

browser

<script src="https://unpkg.com/vue"></script>
<script src="https://unpkg.com/@seregpie/vuesvg"></script>

If Vue is detected, the component will be registered automatically.

usage

<vue-svg src="https://unpkg.com/simple-icons/icons/github.svg"/>

Versions

Current Tags

VersionDownloads (Last 7 Days)Tag
19.0.030latest

Version History

VersionDownloads (Last 7 Days)Published
19.0.030
18.10.240
18.7.94
18.6.290

Package Sidebar

Install

npm i @seregpie/vuesvg

Weekly Downloads

34

Version

19.0.0

License

MIT

Unpacked Size

3.57 kB

Total Files

4

Last publish

Collaborators

  • seregpie