Vue quick start
-
Import components:
import {SvgImage, // Basically implements SVG spritesSvgIcon, // Basic SVG icon that uses SvgImage component internally} from "vite-awesome-svg-loader/vue-integration"; -
Import images:
import imageSrc from "@/path/to/image.svg"; -
Display images:
<template><div class="main"><SvgImage :src="imageSrc" /><SvgIcon:src="imageSrc"size="24px"color="red"color-transition="0.3s ease-out"/></div></template>