file-icons-vue

A file icons package for Vue3 projects
21,739 20
Install
npm install file-icons-vue
Latest Version:1.3.5
License:Apache-2.0
Last Updated:Jun 20, 2026
Links: GitHub  ·  npm
Maintainer: zyyzyykk

file-icons-vue

A file icons package for Vue3 projects

Author: zyyzyykk

Source Code: https://github.com/zyyzyykk/file-icons-vue

Npm Address: https://www.npmjs.com/package/file-icons-vue

Update Time: 2026-06-20

⚡ Quick Usage

  1. Install the latest version package
# all icons
npm i file-icons-vue
# common icons
npm i file-icons-vue-min
  1. Import the component in your Vue3 project
<template>
  <FileIcons 
     name="text.txt" :width="30" :height="30" 
     :isFolder="false" :isMulti="false" :isLink="false" 
     :itemStyle="{display: 'flex', alignItems: 'center'}" 
     :iconStyle="{opacity: 0.5}" 
  />
</template>

<script>
// import file icon component
import FileIcons from 'file-icons-vue';

export default {
  name: 'App',
  components: {
    FileIcons
  }
}
</script>

<style>
</style>

👀 Preview

Preview

💡 Parameter Description

Parameter Type Description Remark
name String Full file name Must be transmitted
width Number Icon width (px) Default value is 20 (px)
height Number Icon height (px) Default value is 20 (px)
iconStyle Object File Icon custom style The width and height attributes in the object do not take effect
linkStyle Object File Iink custom style The width and height attributes in the object do not take effect
itemStyle Object Icon parent element custom style The width and height attributes in the object do not take effect
isFolder Boolean Is it a folder Default value is false
isMulti Boolean Is it multiple files Default value is false
isLink Boolean Is it linked file Default value is false

👨‍💻 Update Records

file-icons-vue@1.3.5: latest
  • Optimize the code logic and documentation
file-icons-vue@1.3.4:
  • Add itemStyle attribute instead of style attribute
  • Add .hh、.xaml、.xsd、.xslt icons, Modify .xsl icon
file-icons-vue@1.3.2:
  • Add iconStyle、linkStyle attribute, Modify the meaning of style attribute
file-icons-vue@1.3.1:
  • Add isLink attribute, supports displaying reference type files
  • Remove duplicate icons and reduce packaging volume
  • Modify .html icon

Related Packages

xyz-icon-set-vue

Official Vue components package for icons from XYZ Icon Set

2,835 2
@64mb/gravity-ui-icons-vue

Pack of Gravity UI icons for Vue

2,046 1
@ycloud-web/icons-vue

A YCloud icon library package for Vue applications.

4,573 0
@opudoc/opicon-vue

An Opicon icon library package for Vue applications.

1,248 1
nuxt3-svg-icons

A simple module to implement your own svg icons in nuxt3.

849

Version History

Version Released License
1.3.5 Apache-2.0
1.3.4 ISC
1.3.2 ISC
1.3.1 ISC
1.2.8 ISC