@softicons/vue
@softicons/vue
Tree-shakeable Vue 3 components for the Softicons icon
set — 24×24, mono-line, currentColor, zero runtime dependencies.
Works with Vue 3 and Nuxt 3/4. Vue 2 / Nuxt 2 are not supported.
Install
npm i @softicons/vue
# or
pnpm add @softicons/vue
# or
yarn add @softicons/vue
Use
<script setup>
import { ArrowRightIcon, HeartIcon } from "@softicons/vue";
</script>
<template>
<ArrowRightIcon />
<HeartIcon :size="20" :stroke-width="1.5" color="#e06a8b" aria-label="Like" />
</template>
Or register every icon globally via the plugin:
import { createApp } from "vue";
import { Softicons } from "@softicons/vue";
createApp(App).use(Softicons).mount("#app");
| Prop | Type | Default |
|---|---|---|
size |
number | string |
24 |
color |
string |
currentColor |
strokeWidth |
number | string |
1.5 |
aria-label |
string |
— (adds role="img", else aria-hidden) |
Named imports are individually tree-shakeable, and every icon ships with types.
Links
- 🌐 softicons.dev — browse all icons
- 📖 Docs
- 📦 All Softicons packages on npm
MIT © Softicons
Related Packages
vadivam-vue
Pixel-perfect 24px outline icon components for Vue with tree-shakeable imports.
4,635
12
@devigner-ui/icons-vue
8,588 open-source icons for Vue 3: 2,147 symbols, each in outline, twotone, bold...
735
16
Version History
| Version | Released | Vue | License |
|---|---|---|---|
| 0.2.0 | >=3.3 | MIT | |
| 0.1.1 | >=3.3 | MIT | |
| 0.1.0 | >=3.3 | MIT |