An open API service indexing awesome lists of open source software.

https://github.com/seregpie/vuesvg

Loads a SVG image as an inline SVG.
https://github.com/seregpie/vuesvg

component svg vue

Last synced: about 2 months ago
JSON representation

Loads a SVG image as an inline SVG.

Awesome Lists containing this project

README

        

# VueSvg

Loads a SVG image as an inline SVG.

## setup

### npm

```shell
npm i @seregpie/vuesvg
```

### ES module

Register the component globally.

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

Vue.component(VueSvg.name, VueSvg);
```

*or*

Register the component in the scope of another component.

```javascript
import VueSvg from '@seregpie/vuesvg';

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

### browser

```html

```

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

## usage

```html

```