Vue Icons Plus is a comprehensive collection of over 50,000 SVG icons from popular icon libraries, designed for easy integration into Vue.js projects. Supporting Vue 3 and Vue 2.7+, it allows developers to import and use icons directly as components. The package, currently at version 0.1.9, follows a modular import structure where icons are accessed from subdirectories corresponding to their original icon pack (e.g., `vue-icons-plus/fa` for Font Awesome). This design minimizes bundle size by only including the necessary icons. Its release cadence appears to be ad-hoc based on bug fixes and new icon pack additions. Key differentiators include its vast selection of icons and explicit support for both modern Vue setups and older Webpack environments through separate `@vue-icons-plus/sfc-X` packages, although these have install time trade-offs.
npm install vue-icons-plusVerified import paths — ran on the pinned version, not inferred.
Demonstrates importing and using multiple icons from different families (Font Awesome, Bootstrap Icons, Material Design) as components in a Vue 3 setup with `<script setup>`.
Ensure your import statements target the correct sub-path: `import { IconName } from 'vue-icons-plus/icon-family-code';`For Vue 2.7+: `export default { components: { FaBeer } }`. For Vue 3, typically no extra step is needed after import in `<script setup>`.If encountering installation issues or performance bottlenecks with the main package in older environments, consider using `npm install @vue-icons-plus/sfc-X` and adjust imports to `import IconName from '@vue-icons-plus/sfc-X/family/IconName';`. Be aware of the increased installation duration.
When using `@vue-icons-plus/sfc-X` packages, always use default imports with the full component path: `import FaBeer from '@vue-icons-plus/sfc-1/fa/FaBeer';`
Verify that your import statement includes the specific icon family sub-path, e.g., `import { FaBeer } from 'vue-icons-plus/fa';` instead of `import { FaBeer } from 'vue-icons-plus';`For Vue 2.7+, ensure components are explicitly registered: `export default { components: { FaBeer } }`. For both Vue 2.7+ and Vue 3, double-check the import path for the icon component, especially the icon family sub-path.