About 378,000 results
Any time
Open links in new tab
-
Kizdar net |
Kizdar net |
Кыздар Нет
- Viewed 158k times55answered Aug 4, 2017 at 17:33
Based on the information you provided, what you can do is:
Install vue-svg-loader
npm install --save-dev vue-svg-loader
Configure webpack:
module: {rules: [{test: /\.svg$/,loader: 'vue-svg-loader', // `vue-svg` for webpack 1.x},],},Import the svg and use it as a regular component:
<template><nav id="menu"><a href="..."><SomeIcon class="icon" />Some page</a></nav></template><script>import SomeIcon from './assets/some-icon.svg';export default {name: 'menu',components: {SomeIcon,},};</script>Reference: https://github.com/visualfanatic/vue-svg-lo...
Content Under CC-BY-SA license How can I import a svg file to a Vue component? - Stack Overflow
Using SVG and Vue.js: A complete guide - LogRocket Blog
svg-to-vue-component - npm
- Question & Answer
javascript - How do I import an svg in Vue 3? - Stack Overflow
vue-svg-loader
Import SVG to Vite + Vue projects | by Oleksandr …
WEBOct 10, 2023 · Guide for better importing SVGs into Vite + Vue app - by URL, as raw HTML, or as Vue component.
svg-to-vue-component - GitHub
GitHub - egoist/svg-to-vue-component: Transform SVG files into …
GitHub - gonghongchen/vue-svg-component: Transform svg to …
How to import an SVG file to a Vue.js component? - The Web Dev
vite-svg-loader - npm
Using SVGs in Vuejs made simple - DEV Community
Managing SVG images in Vue.js applications - codeburst
Dealing with SVG icons in Vue + Vite - DEV Community
SVG to Vue.js component - Figma
Use SVG files as Vue components with Vite - GitHub
svg-to-vue-component examples - CodeSandbox
vue.js - How to use svg component in vuejs - Stack Overflow
Related searches for svg to vue component
- Some results have been removed