@nuxtclub/feathericons

An easy way to integrate Feather Icons with NuxtJS
1,771 7
Install
npm install @nuxtclub/feathericons
Latest Version:1.0.0
License:MIT
Last Updated:Apr 6, 2021
Links: GitHub  ·  npm
Maintainer: imlautaro

@nuxtclub/feathericons

Setup

  1. Add @nuxtclub/feathericons dependency to your project
npm i -D @nuxtclub/feathericons
  1. Add @nuxtclub/feathericons to the buildModules section of nuxt.config.js

:warning: If you are using Nuxt < v2.9 you have to install the module as a dependency (No --dev or --save-dev flags) and use modules section in nuxt.config.js instead of buildModules.

export default {
	buildModules: ['@nuxtclub/feathericons'],
}

Typescript support

Add the types to your "types" array in tsconfig.json after the @nuxt/types entry.

:warning: Use @nuxt/vue-app instead of @nuxt/types for nuxt < 2.9.

{
	"compilerOptions": {
		"types": ["@nuxt/types", "@nuxtclub/feathericons"]
	}
}

Usage

This module will inject $feathericons in the context of your application.

Using $feathericons you can access to an object with all the icons of the Feather Icons Package.

Example

<template>
	<div v-html="$feathericons['home'].toSvg()"></div>
</template>

Learn more about Feather Icons here.

Related Packages

nuxt-define

One utility function for module authors to define compiler constants for all bui...

13,412,511
@lg2/nuxt3-module-create-dato-map

nuxt3-module-create-dato-map

2,869 0
nuxt-csurf

Nuxt Cross-Site Request Forgery (CSRF) Prevention

6,263,746 91
@bg-dev/nuxt-naiveui

Unofficial Naive UI module for Nuxt

144,316 187
@ztl-uwu/nuxt-content

Write your content inside your Nuxt app

34,108

Version History

Version Released License
1.0.0 MIT