SVG to Vue Component Compiler

JSON →
library 0.3.8 ·javascript abandoned
verified May 27, 2026

svg-to-vue-component is a utility that compiles SVG files directly into Vue Single File Components (SFCs). This approach allows developers to import SVG assets as standard Vue components, enabling enhanced styling capabilities with CSS, direct application of DOM properties, and attachment of event handlers to the underlying SVG elements. The current stable version is 0.3.8, released in April 2019, indicating that the project is either abandoned or in a long-term maintenance state with no active development. Key differentiators include its built-in hot-reloading support via `vue-loader`, comprehensive support for all standard DOM props and events (unlike some alternatives that only support `class` and `style`), and flexible configuration options for SVGO, both project-wide and file-relative. It provides specific integration guides for Webpack, Vue CLI, Poi, and Nuxt.js 2 setups.

total hits 16
actors 6 distinct systems
last hit 6d ago AhrefsBot
GPTBot
5
MetaBot
4
Script
1
Search engines
2

top countries 🇺🇸 United States · 🇨🇦 Canada · 🇩🇪 Germany · 🇫🇷 France