Gathering detailed insights and metrics for @icon-park/vue-next
Gathering detailed insights and metrics for @icon-park/vue-next
npm install @icon-park/vue-next
Typescript
Module System
Min. Node Version
Node Version
NPM Version
TypeScript (99.99%)
Less (0.01%)
Love this project? Help keep it running — sponsor us today! 🚀
Total Downloads
248,611
Last Day
243
Last Week
1,739
Last Month
6,248
Last Year
120,364
Apache-2.0 License
8,547 Stars
155 Commits
508 Forks
58 Watchers
11 Branches
18 Contributors
Updated on Feb 21, 2025
Latest Version
1.4.2
Package Id
@icon-park/vue-next@1.4.2
Unpacked Size
10.01 MB
Size
842.72 kB
File Count
10,659
NPM Version
8.5.5
Node Version
16.15.0
Cumulative downloads
Total Downloads
Last Day
-22.6%
243
Compared to previous day
Last Week
-9.1%
1,739
Compared to previous week
Last Month
-3.9%
6,248
Compared to previous month
Last Year
59.8%
120,364
Compared to previous year
1
Vue3 Icons for IconPark
Please visit IconPark Website
npm install @icon-park/vue-next --save
Import an icon from @icon-park/vue-next
at the top of a component and then use it in the template tag:
1<template> 2<home theme="filled"/> 3</template> 4<script> 5import {Home} from '@icon-park/vue-next'; 6 7export default { 8 components: { 9 Home 10 } 11} 12</script>
If you don't want to refer to it, you can install icons globally.
1import {install} from '@icon-park/vue-next/es/all'; 2import {createApp} from 'vue'; 3 4const app = createApp({}); 5 6// Install 7install(app); // use default prefix 'icon', eg: icon is People, name is icon-people. 8install(app, 'i'); // use custom prefix 'i', eg: icon is People, name is i-people. 9 10app.mount('#app');
Import the icon style:
1import '@icon-park/vue-next/styles/index.css';
You can use IconProvider
in @icon-park/vue-next
to set the default config globally:
1<template> 2<div> 3<home/> 4</div> 5</template> 6<script lang="ts"> 7import {DEFAULT_ICON_CONFIGS, IconProvider} from '@icon-park/vue-next'; 8import {Home} from '@icon-park/vue-next'; 9 10export default { 11 name: 'App', 12 setup(){ 13 IconProvider({...DEFAULT_ICON_CONFIGS, prefix: 'icon'}); 14 }, 15 components: { 16 Home 17 } 18}; 19</script> 20
You can use babel-plugin-import to import icons on demand.
Set config like this:
1{ 2 "plugins": [ 3 [ 4 "import", 5 { 6 "libraryName": "@icon-park/vue-next", 7 "libraryDirectory": "es/icons", 8 "camel2DashComponentName": false 9 } 10 ] 11 ] 12}
We recommend loading icons on demand, because this can greatly reduce the volume of compiled code。 However, in some scenarios similar to remote loading menus, direct reference to all icons can reduce the development cost.
Usage:
1<template> 2<icon-park type="AddText" theme="filled"/> 3<icon-park type="add-text" theme="filled"/> 4</template> 5<script> 6import {IconPark} from '@icon-park/vue-next/es/all'; 7 8export default { 9 components: { 10 IconPark 11 } 12} 13</script>
If you need to use additional information such as icon name, author, category, label and creation time, you can use the icons.json
file located in the root directory of each NPM.
prop | description | type | default | note |
---|---|---|---|---|
theme | Theme of the icons. | 'outline' | 'filled' | 'two-tone' | 'multi-color' | 'outline' | |
size | The width/height of the icon | number | string | '1em' | |
spin | Rotate icon with animation | boolean | false | |
fill | Colors of theme | string | string[] | 'currentColor' | |
strokeLinecap | the stroke-linecap prop of svg element | 'butt' | 'round' | 'square' | 'round' | |
strokeLinejoin | the stroke-linejoin prop of svg element | 'miter' | 'round' | 'bevel' | 'round' | |
strokeWidth | the stroke-width prop of svg element | number | 4 |
No vulnerabilities found.
Reason
license file detected
Details
Reason
no binaries found in the repo
Reason
Found 5/25 approved changesets -- score normalized to 2
Reason
0 commit(s) and 0 issue activity found in the last 90 days -- score normalized to 0
Reason
no effort to earn an OpenSSF best practices badge detected
Reason
security policy file not detected
Details
Reason
branch protection not enabled on development/release branches
Details
Reason
project is not fuzzed
Details
Reason
SAST tool is not run on all commits -- score normalized to 0
Details
Reason
28 existing vulnerabilities detected
Details
Score
Last Scanned on 2025-02-17
The Open Source Security Foundation is a cross-industry collaboration to improve the security of open source software (OSS). The Scorecard provides security health metrics for open source projects.
Learn More