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

  1. Open svgforge.dev or a set page such as Lucide.
  2. Search for the glyph (for example house, settings, chevron-right).
  3. 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

  1. Go to svgforge.dev/svg-tools/component-converter.
  2. Paste or upload the SVG.
  3. Select Vue (Vue 3 SFC).
  4. Copy the generated .vue component.

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

VUE
<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)

  1. Lucide icon page on SVGForge → Copy SVG
  2. Component Converter → Vue
  3. 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

  1. Find an icon on SVGForge (e.g. Lucide)
  2. Copy SVG (recolor/optimize if needed)
  3. Open Component Converter → Vue
  4. Save as .vue and import
  5. 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.

svg-editor 6 min read

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 Article