Skip to content

System Icons

Icon Rendering Principle

Based on the svg json data of iconify, the svg data is converted into vue components through the unplugin-icons plugin.

Local svg icon rendering principle

By using the unplugin-icons plugin and vite-plugin-svg-icons plugin, local svg files are converted into vue components

Local svg icons need to be placed in the src/assets/svg-icon directory

.env configuration file

  • VITE_ICON_PREFIX: iconify icon prefix
  • VITE_ICON_LOCAL_PREFIX: local svg icon prefix, the format follows {VITE_ICON_PREFIX}-

Publish under the MIT license