@vuecs/icon

Iconify-backed icon component for vuecs. Wraps @iconify/vue's with a vuecs-namespaced .
5,115 4
Install
npm install @vuecs/icon
Latest Version:1.1.1
Vue:3
License:Apache-2.0
Last Updated:Oct 16, 2026
Links: GitHub  ·  npm
Maintainer: tada5hi

@vuecs/icon

npm version CI license

<VCIcon> — the icon runtime of vuecs. A thin, vuecs-namespaced wrapper around @iconify/vue's <Icon> that renders any of 200,000+ Iconify icons from a single string prop.

✨ What's inside

  • 🪶 One prop, every icon set — name="lucide:plus", name="fa6-solid:user", name="mdi:home"; all other attrs forward to the underlying SVG.
  • 🔌 Powers vuecs's semantic icon slots — components like <VCPagination> and <VCButton> take Iconify-name props and render them through <VCIcon>; icon presets fill those slots app-wide.
  • 📦 No bundled icon data — you choose the delivery mechanism: @nuxt/icon (Nuxt), addCollection() from an @iconify-json/* package (Vite/SPA), or Iconify's runtime CDN as the zero-config fallback.

📦 Installation

npm install @vuecs/icon

⚡ Usage

<VCIcon name="lucide:chevron-left" />
<VCIcon name="fa6-solid:rocket" class="text-xl" />
// Vite / SPA — bundle a collection offline (no CDN requests)
import { addCollection } from '@iconify/vue';
import { icons as lucide } from '@iconify-json/lucide';

addCollection(lucide);

📚 Documentation

Full reference + delivery recipes (Nuxt, Vite SSR, Vite SPA): vuecs.dev/components/icon · Icon setup guide

License

Made with 💚

Published under Apache 2.0 License.

Related Packages

@gits-id/icon

GITS Icon Component

3,039
vue3-icon-picker

Vue 3 icon picker

22,148 10
@vuecs/icons-font-awesome

Font Awesome icon preset for vuecs — maps semantic-slot defaults (pagination pre...

6,514 4
@vuecs/icons-lucide

Lucide icon preset for vuecs — maps semantic-slot defaults (pagination prev/next...

2,292 4
vite-plugin-iconify-offline

Vite 插件:构建时自动扫描 Iconify 图标引用并预注册,实现零运行时开销的离线图标方...

2,114 4

Version History

Version Released Vue License
1.1.1 ^3.x Apache-2.0
1.1.0 ^3.x Apache-2.0
1.0.3 ^3.x Apache-2.0
1.0.2 ^3.x Apache-2.0
1.0.1 ^3.x Apache-2.0