SVG to Vue Single File Component

Output a .vue single-file component from SVG

SVG to Vue? SVG to VueVue TypeScript? Vue TypeScript

FAQ

Quick answers

How do I turn SVG into a .vue SFC?
Paste the SVG and click Convert to SFC, then copy the single-file component.
Does SFC output include a template block for the SVG?
Yes. The SVG lands in the template section of the SFC.
Need JSX instead of an SFC template?
Open Vue JSX for render-function style output.
Is Vue SFC conversion private?
Yes. Free, no upload.
SVG to Vue → Vue TypeScript → Composition API → Options API →
Open full editor →

Source

Type or paste SVG markup. The preview on the right updates as you type.

Ready

Live preview

PNG export · 2× for retina