@iconmarvel/vue
IconMarvel Vue — IconMarvelIcon component (paste from iconmarvel.com).
599
| Install | |
|---|---|
npm install @iconmarvel/vue |
|
| Latest Version: | 1.0.2 |
| Vue: | 3 |
| License: | MIT |
| Last Updated: | Oct 11, 2026 |
| Links: | npm |
Maintainer: shabbar-abbas
@iconmarvel/vue
Use IconMarvel icons in Vue 3 / Nuxt after copying from iconmarvel.com.
No search. No copy buttons. Discover on the site, install npm, paste snippet.
Install
npm install @iconmarvel/vue @iconmarvel/client
Peer: Vue 3.3+.
Usage
1. On iconmarvel.com
Search → open icon → under preview tap Vue → Copied!
2. In your app
<script setup lang="ts">
// once per app (main.ts or root component)
import { IconMarvel, IconMarvelIcon } from '@iconmarvel/vue'
IconMarvel.init()
</script>
<template>
<!-- pasted from the website -->
<IconMarvelIcon
icon="shopping-cart-a1b2c3"
src="https://cdn.iconmarvel.com/icons/shopping-cart-a1b2c3.svg"
:size="24"
/>
</template>
Named component (recommended):
export const CartIcon = IconMarvel.createIcon('shopping-cart-a1b2c3', {
src: 'https://cdn.iconmarvel.com/icons/shopping-cart-a1b2c3.svg',
})
API
| API | Purpose |
|---|---|
IconMarvel.init() |
Once per app |
IconMarvelIcon |
Inline component from site copy |
IconMarvel.createIcon(slug, { src }) |
Named component |
IconMarvel.prefetchCdn(hit) |
Preload CDN |
Nuxt / SSR
import { getIcon } from '@iconmarvel/client'
const icon = await getIcon('home-solid')
// <IconMarvelIcon :icon="icon.slug" :src="icon.cdnUrl" :size="32" />
Related Packages
@iconoir/vue
Vue library for Iconoir, the biggest open source icon library with tons of free...
56,973
4,600
Version History
| Version | Released | Vue | License |
|---|---|---|---|
| 1.0.2 | >=3.3 | MIT | |
| 1.0.1 | >=3.3 | MIT | |
| 1.0.0 | >=3.3 | MIT |
Pre-releases (1)
| Version | Released | License |
|---|---|---|
| 0.0.0-stage |