A superset standalone icon-components for Vue with zero dependencies. Designed for ease of use and high performance.
Installations
npm install @iconify-prerendered/vue-ion
Developer Guide
Typescript
Yes
Module System
ESM
Node Version
18.20.4
NPM Version
10.7.0
Score
60.2
Supply Chain
97.8
Quality
80.8
Maintenance
100
Vulnerability
100
License
Releases
Unable to fetch releases
Contributors
Unable to fetch Contributors
Languages
TypeScript (100%)
Love this project? Help keep it running β sponsor us today! π
Developer
cawa-93
Download Statistics
Total Downloads
5,155
Last Day
2
Last Week
4
Last Month
82
Last Year
1,258
GitHub Statistics
MIT License
96 Stars
845 Commits
2 Watchers
3 Branches
1 Contributors
Updated on Feb 15, 2025
Bundle Size
891.10 kB
Minified
206.08 kB
Minified + Gzipped
Sponsor this package
Package Meta Information
Latest Version
0.28.1714627492
Package Id
@iconify-prerendered/vue-ion@0.28.1714627492
Unpacked Size
927.33 kB
Size
205.42 kB
File Count
4
NPM Version
10.7.0
Node Version
18.20.4
Published on
Nov 12, 2024
Total Downloads
Cumulative downloads
Total Downloads
5,155
Last Day
0%
2
Compared to previous day
Last Week
-71.4%
4
Compared to previous week
Last Month
46.4%
82
Compared to previous month
Last Year
-33.6%
1,258
Compared to previous year
Daily Downloads
Weekly Downloads
Monthly Downloads
Yearly Downloads
Peer Dependencies
1
Important
This project is maintained by developer from Ukraine πΊπ¦
I do my best, but due to Russia's ongoing full-scale invasion of Ukraine, I barely have the energy to support open source projects.
If my work has been useful to you, please consider supporting Ukraine or me personally.
Even your $1 has an impact!
IonIcons components for Vue
Designed for ease of use and high performance. Each icon in set is a standalone component.
Features
- Easy to use
- No plugins required! Compatible with any build tools.
- Designed for the best compatibility with IDE auto-completion (Demo).
- Zero dependencies.
- SSR / SSG friendly.
- TypeScript support.
- High performance
- Does not require any external resources like fonts, css, images.
- The icon code is embedded in your bundle.
- Supports tree shaking, so only those icons that you have used will be included in the bundle.
- Works offline.
- Powered by iconify.
Usage
1<script setup> 2// Import components as usual 3import { 4 IconCodeDownloadSharp, 5 IconContrastOutline, 6 IconCheckmarkDone, 7 IconNavigateSharp, 8 IconArrowRedoOutline, 9 IconBookmarkSharp, 10} from '@iconify-prerendered/vue-ion' 11</script> 12 13<template> 14 <!-- And just use it in template --> 15 <IconCodeDownloadSharp/> 16 <IconContrastOutline/> 17 <IconCheckmarkDone/> 18 <IconNavigateSharp/> 19 <IconArrowRedoOutline/> 20 <IconBookmarkSharp/> 21</template>
Only these three icons will be included in your bundle. Your bundler may tree-shake all other icons.
That's all you need. No plugins, extra configs, IDE extensions or something else.
Customizing icon default attributes
By default, all icons have only two attributes: role="img"
and
aria-hidden="true"
. While you are free to redefine these attributes or add new
ones for each icon, you might want to apply certain attributes, such as class
or style
, to all icons within a set.
To achieve this, you can re-export icons through a new Proxy
and include
default attributes
1import * as defaultIcons from '@iconify-prerendered/vue-ion'; 2 3// accessing to icon through this Proxy will add additional attributes 4export const themedIcons = new Proxy({}, { 5 get(_, iconKey) { 6 return () => 7 defaultIcons[iconKey]({ 8 class: 'pre-defined-class', 9 // ... any other attributes 10 }); 11 }, 12});
See full docs or other available icons sets.

No vulnerabilities found.

No security vulnerabilities found.