vue-feather-icons provides a comprehensive collection of open-source icons from Feather Icons, delivered as lightweight Vue functional components. It is designed for efficiency, leveraging ES module imports to enable tree-shaking, which ensures that only the icons explicitly used are included in the final application bundle. The current stable version is 5.1.0, with its last release in August 2020. Due to this lack of recent activity, the project appears to be unmaintained, which may lead to compatibility issues with newer versions of Vue (e.g., Vue 3) or modern build tools. Its key differentiators include direct integration as Vue components, a strong focus on minimizing bundle size through explicit import patterns, and the aesthetic appeal of Feather Icons, setting it apart from more generically bundled icon libraries.
npm install vue-feather-iconsVerified import paths — ran on the pinned version, not inferred.
Demonstrates importing and rendering multiple Feather Icons as Vue components, showing different sizing options (relative, pixel) and basic styling. This example is tailored for Vue 2.x.
Set the `size` prop to a pixel value (e.g., `size="24"`) or a multiple of `em` (e.g., `size="1.5x"`) on each icon component.
For new Vue 3 projects, consider actively maintained alternatives like `vue-remixicon`, `heroicons`, or migrating to a component library that includes its own icon set. For existing Vue 2 projects, proceed with caution and thorough testing.
Ensure your build setup uses a module bundler like Webpack or Rollup configured for tree-shaking, and consistently use ES module `import` statements.
Ensure you `import { IconName } from 'vue-feather-icons'` (or per-file `import IconName from 'vue-feather-icons/icons/IconName'`) and then add `IconName` to the `components` object of your Vue component (e.g., `components: { IconName }`).Explicitly set the `size` prop on your icon components. For example, `<activity-icon size="24"></activity-icon>` for 24px, or `<activity-icon size="1.5x"></activity-icon>` for 1.5 times the current font size.
Replace `require()` statements with ES Module `import` syntax: `import { IconName } from 'vue-feather-icons'`.No dependency data recorded yet.