nuxt-feather-icons
Nuxt Feather Icons is the most efficient way to use Feather Icons in your Nuxt project. Every icon is pre-compiled into a Vue render function, ensuring your production bundle only includes exactly what you use.
📖 Documentation
For full installation guides, configuration options, and the Icon Gallery, visit our documentation:
✨ Highlights
- Zero-Runtime Compiler: Icons are pre-compiled into lightweight render functions (
h()). - Smart Tree-Shaking: Automatically excludes unused icons from your bundle.
- Auto-imported: Use
<HomeIcon />anywhere without manual imports. - Dynamic Resolver: Efficiently render icons from strings using
useFeatherIcon(). - SSR Ready: Optimized for fast server-side rendering and hydration.
📦 Quick Start
# Install using nuxi
npx nuxi@latest module add nuxt-feather-icons
<template>
<div class="flex gap-4">
<HomeIcon size="24" />
<UsersIcon size="2x" class="text-blue-500" />
<SettingsIcon :stroke-width="1.5" />
</div>
</template>
🛠️ Configuration
export default defineNuxtConfig({
modules: ['nuxt-feather-icons'],
nuxtFeatherIcons: {
// Prefix for icon components (e.g. <FHomeIcon />)
prefix: 'F',
// Global default size (string or number)
size: 24,
// Global default stroke width
strokeWidth: 2,
// Global default CSS classes
class: 'my-default-icon-class'
}
})
⚖️ License
Related Packages
nuxt-hydration-gate
Mark Nuxt app hydration with a DOM attribute for CSS, scripts, and end-to-end te...
211
0
@solar-icons/nuxt
Nuxt module for easily integrating Solar Icons into your Nuxt 3+ applications.
9,600
224
@verbaly/nuxt
Nuxt integration for Verbaly: zero-config module with per-request locale negotia...
8,706
4
@vitral/nuxt
The Nuxt module for Vitral: the plugin from nuxt.config, auto-imported component...
2,999
3
Version History
| Version | Released | License |
|---|---|---|
| 1.4.2 | MIT | |
| 1.4.1 | MIT | |
| 1.4.0 | MIT | |
| 1.3.9 | MIT | |
| 1.3.8 | MIT | |
| 1.3.7 | MIT | |
| 1.3.6 | MIT | |
| 1.3.5 | MIT | |
| 1.3.4 | MIT | |
| 1.3.3 | MIT | |
| 1.3.2 | MIT | |
| 1.3.1 | MIT | |
| 1.3.0 | MIT | |
| 1.2.5 | MIT | |
| 1.2.4 | MIT | |
| 1.2.3 | MIT | |
| 1.2.2 | MIT | |
| 1.2.1 | MIT | |
| 1.2.0 | MIT | |
| 1.1.9 | MIT | |
| 1.1.8 | MIT | |
| 1.1.7 | MIT | |
| 1.1.6 | MIT | |
| 1.1.5 | MIT | |
| 1.1.4 | MIT | |
| 1.1.3 | MIT | |
| 1.1.2 | MIT | |
| 1.1.1 | MIT | |
| 1.1.0 | MIT | |
| 1.0.9 | MIT |
Showing the latest 30 of 39. See every release on npm