-
Notifications
You must be signed in to change notification settings - Fork 4
/
App.vue
32 lines (26 loc) · 978 Bytes
/
App.vue
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
<script setup lang="ts">
import SpiriitUse from './../../_fixtures/icons/spiriit.svg?use'
import SpiriitView from './../../_fixtures/icons/spiriit.svg?view'
import ViteUse from './../../_fixtures/icons/vite.svg?use'
import ViteView from './../../_fixtures/icons/vite.svg?view'
</script>
<template>
<h1>Vite Plugin SVG Spritemap Demo with VueJS</h1>
<p>This is a demo of the Vite Plugin SVG Spritemap working with VueJS component.</p>
<div class="example">
<h2>Spritemap with <use> via Vue component</h2>
<div class="example__svgs">
<SpiriitUse class="icon icon-spiriit">
<title>My superb logo</title>
</SpiriitUse>
<ViteUse class="icon icon-vite" />
</div>
</div>
<div class="example">
<h2>Spritemap with <img> (fragments) via Vue component</h2>
<div class="example__svgs">
<SpiriitView alt="" class="icon icon-spiriit" />
<ViteView alt="" class="icon icon-vite" />
</div>
</div>
</template>