Export Iconify Icons as Vue 3 SFC in 30 Seconds
Why this workflow
- No upload of icon markup to a converter service
- No local Node script for one-off icons
- Works with any SVG—including Iconify sets mirrored on SVGForge
- Same tool also does React / Svelte when your monorepo mixes frameworks
Step 1: Pick an Iconify icon on SVGForge
- Open svgforge.dev or a set page such as Lucide.
- Search for the glyph (for example
house,settings,chevron-right). - Open the icon detail page and copy the SVG (or use Advance Edit if you need a quick recolor first).
License reminder: icons keep their upstream open-source licenses. Converting to Vue does not add rights—check the set page before commercial use.
Step 2: Convert to a Vue 3 SFC
- Go to svgforge.dev/svg-tools/component-converter.
- Paste or upload the SVG.
- Select Vue (Vue 3 SFC).
- Copy the generated
.vuecomponent.
You should get a single-file component with the SVG in the template (and script setup depending on the converter’s Vue template). Drop it into your project and import like any other SFC.
Step 3: Use it in Vue 3
<script setup lang="ts">
import IconHouse from '@/components/icons/IconHouse.vue'
</script>
<template>
<IconHouse class="h-5 w-5 text-slate-700" aria-hidden="true" />
</template>
For themeable UI icons, convert paints to currentColor first with the SVG Recolor tool, then run the Component Converter—so text-* utility classes drive the icon color.
30-second path (cheat sheet)
- Lucide icon page on SVGForge → Copy SVG
- Component Converter → Vue
- Paste into
IconSomething.vue→ import
Optional polish: Optimize between copy and convert.
Practical recipes
Design system pack
Batch your most-used Lucide keys → optimize → Vue SFC each → commit.
Dark mode navbar
Recolor to currentColor → Vue SFC → style with CSS variables.
Mixed React + Vue monorepo
Same SVG source; export JSX for the React app and Vue SFC for the Vue app from one converter.
Edited variant
SVG Editor?icon=lucide:house → export SVG → Vue SFC.
FAQ
Is this official Iconify Vue?
No. You’re exporting static SVG components. For runtime Iconify components, use Iconify’s Vue packages. SVGForge shines when you want vendored, editable SFCs in your repo.
Does conversion upload icons?
No. Component conversion is client-side.
Can I use Material or other sets?
Yes—any set available on SVGForge. Browse /sets/{prefix} and repeat the same convert step.
JSX instead of Vue?
Use the same tool in React mode—see How to Convert SVG to React (JSX/TSX) in Your Browser.
Quick checklist
- Find an icon on SVGForge (e.g. Lucide)
- Copy SVG (recolor/optimize if needed)
- Open Component Converter → Vue
- Save as
.vueand import - Verify license on the set page
Try it now
Open a Lucide icon, copy the SVG, and convert it with the free Component Converter to a Vue 3 SFC in about thirty seconds—without uploading.
Recommended
How to Edit Icons with SVG Editor
Customize open-source and local SVG icons in SVGForge’s browser-based SVG Editor—change colors, layers, and size, then export SVG, JSX, PNG, and more.
Read ArticleHow to Keep Icon Bundles Small Without Barrel Imports
Wildcard icon imports can add megabytes to your client JS. Learn safe import patterns, bundler checks, and when a curated SVG collection beats an npm icon pack.
Read ArticleOptimize SVG Assets Before Production: A Practical Checklist
A ship-ready SVG checklist: clean markup, theming with currentColor, strip metadata, choose the right delivery mode, and verify visuals after compression.
Read Article