@devigner-ui/icons-nuxt: a Nuxt module that auto-imports every icon from
the Vue package. Write <IconBagStraps /> in any
template, with no import line. Only the icons your templates use end up in
the build.
npx nuxi module add @devigner-ui/icons-nuxtOr add it to the config yourself:
// nuxt.config.ts
export default defineNuxtConfig({
modules: ["@devigner-ui/icons-nuxt"],
});Nuxt 3.13 or newer, including Nuxt 4.
<template>
<IconAdd class="size-6" />
<IconShoppingCart variant="bulk" class="size-6 text-violet-600" />
</template>They are the Vue components, so they take the same
props: variant and strokeWidth.
export default defineNuxtConfig({
modules: ["@devigner-ui/icons-nuxt"],
devignerIcons: { prefix: "Dv" }, // <DvBagStraps />
});| Option | Default | What it does |
|---|---|---|
prefix |
"Icon" |
Put before every icon name |