Vue

@devigner-ui/icons-vue: every icon as a Vue 3 component. The artwork is rendered from the React package at build time, so the two cannot drift.

Install

Terminal
npm install @devigner-ui/icons-vue

vue 3.3 or newer is a peer dependency. In Nuxt it works as an ordinary import, or the Nuxt module auto-imports every icon.

Use

HTML
<script setup>
import { IconAdd, IconShoppingCart } from "@devigner-ui/icons-vue";
</script>

<template>
  <IconAdd class="size-6" />
  <IconShoppingCart variant="bulk" class="size-6 text-violet-600" />
</template>

Every icon is its own module, so a bundler keeps only what you import.

Props

Prop Type Default What it does
variant "outline" | "twotone" | "bold" | "bulk" | "broken" "outline" Which drawing to render
strokeWidth string | number 1.5 Line weight of outline, twotone and broken

Styles are lowercase here, as they are in the metadata and the CLI. Everything else (class, style, id, @click, data-*, the aria attributes) falls through to the <svg>.

Icons paint with currentColor, so size and colour come from CSS:

HTML
<IconAdd class="size-5 text-slate-500" />

Accessibility

An icon renders aria-hidden="true" by default, because an icon beside its own label would be read out twice. Name it and it becomes an image:

HTML
<IconAdd aria-label="Add item" />

Documentation

Browse all 12,480 icons