Vue Feather is a component library providing easy integration of Feather icons into Vue 3 applications. The current stable version is `2.0.0`, which marks a significant upgrade to support Vue 3, diverging from previous versions compatible with Vue 2. The library follows Semantic Versioning guidelines, indicating predictable updates. Key differentiators include its lightweight nature, use of functional components for enhanced performance, and extensive customization options via props such as `animation`, `size`, `stroke`, and `type`. It functions as a wrapper around the `feather-icons` library, which must be installed separately as a peer dependency, providing the underlying SVG assets. Releases are infrequent but align with major Vue and Feather Icons updates, focusing on stability and compatibility.
npm install vue-featherVerified import paths — ran on the pinned version, not inferred.
Demonstrates how to install `vue-feather` and register it globally in a Vue 3 application, then use multiple Feather icons in a component template with various props.
For existing Vue 2 projects, stick to `npm install vue-feather@^1`. For Vue 3 projects, ensure all related dependencies are also Vue 3 compatible.
Install `feather-icons` explicitly: `npm install feather-icons@^4` or `pnpm add feather-icons@^4`.
If upgrading from very old versions, update any custom CSS rules from `.vue-feather` to `.feather`.
Ensure you either globally register the component using `app.component(VueFeather.name, VueFeather);` or locally import it and add it to your component's `components` option: `import VueFeather from 'vue-feather'; export default { components: { VueFeather } };`Install the `feather-icons` package using your preferred package manager: `npm install feather-icons@^4` or `yarn add feather-icons@^4` or `pnpm add feather-icons@^4`.
Verify your import statement is `import VueFeather from 'vue-feather';` for Vue 3 applications.