This demo should help you quickly use custom svg icons base on Vue3 + Typescript + Vite Template.
At its core, Icon is the most commonly used element in project. It maybe from designer or internet (eg: iconfont), Add, modify, fine tune, control is a common operation, And SVG has great advantages in use and display, Here's a helpful article detailing the many ways SVGs can be used on the web: SVG on the Web – Implementation Options
-
copy the relevant code to your project
-
add your icons in assets/svg/
-
done.
npm install
npm run dev
This software is licensed under the ISC License.