Installations
npm install @icon-park/vue-next
Developer Guide
Typescript
No
Module System
CommonJS
Min. Node Version
>= 8.0.0
Node Version
16.15.0
NPM Version
8.5.5
Contributors
Unable to fetch Contributors
Languages
TypeScript (99.99%)
Less (0.01%)
Love this project? Help keep it running — sponsor us today! 🚀
Developer
Download Statistics
Total Downloads
248,611
Last Day
243
Last Week
1,739
Last Month
6,248
Last Year
120,364
GitHub Statistics
Apache-2.0 License
8,547 Stars
155 Commits
508 Forks
58 Watchers
11 Branches
18 Contributors
Updated on Feb 21, 2025
Package Meta Information
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
Total Downloads
Cumulative downloads
Total Downloads
248,611
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
Daily Downloads
Weekly Downloads
Monthly Downloads
Yearly Downloads
Peer Dependencies
1
IconPark Icons
Vue3 Icons for IconPark
Introduction
Features
- Provide more than 2000 icons
- Provide 4 themes:
- outline
- filled
- two-tone
- multi-color
More
Please visit IconPark Website
- Copy SVG
- Copy React Icon component
- Copy Vue Icon component
- Download PNG
- Download SVG
Getting Started
Install
npm install @icon-park/vue-next --save
Include Component
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');
Style Sheet
Import the icon style:
1import '@icon-park/vue-next/styles/index.css';
Global Config
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
Import on Demand
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}
Icon Component
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>
Embed IconPark in your project
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.
Props
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
- Info: project has a license file: LICENSE:0
- Info: FSF or OSI recognized license: Apache License 2.0: LICENSE:0
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
- Warn: no security policy file detected
- Warn: no security file to analyze
- Warn: no security file to analyze
- Warn: no security file to analyze
Reason
branch protection not enabled on development/release branches
Details
- Warn: branch protection not enabled for branch 'master'
Reason
project is not fuzzed
Details
- Warn: no fuzzer integrations found
Reason
SAST tool is not run on all commits -- score normalized to 0
Details
- Warn: 0 commits out of 10 are checked with a SAST tool
Reason
28 existing vulnerabilities detected
Details
- Warn: Project is vulnerable to: GHSA-67hx-6x53-jw92
- Warn: Project is vulnerable to: GHSA-h5c3-5r3r-rr8q
- Warn: Project is vulnerable to: GHSA-rmvr-2pp2-xj38
- Warn: Project is vulnerable to: GHSA-xx4v-prfh-6cgc
- Warn: Project is vulnerable to: GHSA-grv7-fg5c-xmjg
- Warn: Project is vulnerable to: GHSA-wxhq-pm8v-cw75
- Warn: Project is vulnerable to: GHSA-3xgq-45jj-v275
- Warn: Project is vulnerable to: GHSA-w573-4hg7-7wgq
- Warn: Project is vulnerable to: GHSA-4gmj-3p3h-gm8h
- Warn: Project is vulnerable to: GHSA-rc47-6667-2j5j
- Warn: Project is vulnerable to: GHSA-78xj-cgh5-2h22
- Warn: Project is vulnerable to: GHSA-2p57-rm9w-gvfp
- Warn: Project is vulnerable to: GHSA-9c47-m6qq-7p4h
- Warn: Project is vulnerable to: GHSA-p6mc-m468-83gw
- Warn: Project is vulnerable to: GHSA-35jh-r3h4-6jhm
- Warn: Project is vulnerable to: GHSA-952p-6rrq-rcjv
- Warn: Project is vulnerable to: GHSA-mwcw-c2x4-8c55
- Warn: Project is vulnerable to: GHSA-3j8f-xvm3-ffx4
- Warn: Project is vulnerable to: GHSA-j9fq-vwqv-2fm2
- Warn: Project is vulnerable to: GHSA-pqw5-jmp5-px4v
- Warn: Project is vulnerable to: GHSA-7fh5-64p2-3v2j
- Warn: Project is vulnerable to: GHSA-p8p7-x288-28g6
- Warn: Project is vulnerable to: GHSA-c2qf-rxjj-qqgw
- Warn: Project is vulnerable to: GHSA-f5x3-32g6-xq36
- Warn: Project is vulnerable to: GHSA-72xf-g2v4-qvf3
- Warn: Project is vulnerable to: GHSA-7p7h-4mm5-852v
- Warn: Project is vulnerable to: GHSA-5j4c-8p2g-v4jx
- Warn: Project is vulnerable to: GHSA-p9pc-299p-vxgp
Score
2
/10
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