0.1.13 • Published 1 year ago

vue3-icons v0.1.13

Weekly downloads
-
License
ISC
Repository
github
Last release
1 year ago

Vue3 Icons

npm

方案来自:react-icons

Include popular icons in your Vue3 projects easily with vue3-icons, which utilizes ES6 imports that allows you to include only the icons that your project is using.

Installation (for standard modern project)

pnpm add vue3-icons
# or
npm install vue3-icons --save

example usage

<script lang="ts" setup>
import { FaBeer } from 'vue-icons/fa';
</script>
<template>
  <FaBeer />
</template>

Icons

Icon LibraryLicenseVersionCount
Circum IconsMPL-2.0 license1.0.0288
Font Awesome 5CC BY 4.0 License5.15.4-3-gafecf2a1612
Ionicons 4MIT4.6.3696
Ionicons 5MIT5.5.01332
Material Design iconsApache License Version 2.04.0.0-61-g511eea577b4341
TypiconsCC BY-SA 3.02.1.2336
Github Octicons iconsMIT8.5.0184
FeatherMIT4.28.0286
Game IconsCC BY 3.012920d6565588f0512542a3cb0cdfd36a497f9104040
Weather IconsSIL OFL 1.12.0.12219
DeviconsMIT1.8.0192
Ant Design IconsMIT4.2.1789
Bootstrap IconsMIT1.10.32592
Remix IconApache License Version 2.02.5.02271
Flat Color IconsMIT1.0.2329
Grommet-IconsApache License Version 2.04.9.0620
HeroiconsMIT1.0.6460
Heroicons 2MIT2.0.16584
Simple IconsCC0 1.0 Universal8.6.02437
Simple Line IconsMIT2.5.5189
IcoMoon FreeCC BY 4.0 Licensed006795ede82361e1bac1ee76f215cf1dc51e4ca491
BoxIconsCC BY 4.0 License2.1.4814
css.ggMIT2.0.0704
VS Code IconsCC BY 4.00.0.32423
Tabler IconsMIT2.7.03455
Themify IconsMITv0.1.2-2-g9600186352
Radix IconsMIT@modulz/generate-icon-lib@0.2.1318

You can add more icons by submitting pull requests or creating issues.

Configuration

You can configure vue3-icons props using vue3 Provider API.

import { IconContextProvider } from "vue3-icons";

<IconContextProvider :value="{ color: 'blue', className: 'global-class-name' }">
  <div>
    <FaFolder />
  </div>
</IconContext.Provider>;
KeyDefaultNotes
colorundefined (inherit)
size1em
classNameundefined
styleundefinedCan overwrite size and color
attrundefinedOverwritten by other attributes
titleundefinedIcon description for accessibility

Contributing

./build-script.sh will build the whole project. See also CI scripts for more information.

Development

yarn
cd packages/vue3-icons
yarn fetch  # fetch icon sources
yarn build

Preview

The preview site is the vue3-icons website.

cd packages/vue3-icons
yarn fetch
yarn build

cd ../preview
yarn start

Demo

The demo is a vue3 boilerplate with vue3-icons added as a dependency for easy testing.

cd packages/vue3-icons
yarn fetch
yarn build

cd ../demo
yarn start

Why Vue3 SVG components instead of fonts?

SVG is supported by all major browsers. With vue-icons, you can serve only the needed icons instead of one big font file to the users, helping you to recognize which icons are used in your project.

Licence

MIT

  • Icons are taken from the other projects so please check each project licences accordingly.
0.1.13

1 year ago

0.1.10

2 years ago

0.1.11

2 years ago

0.1.12

2 years ago

0.1.2

2 years ago

0.1.7

2 years ago

0.1.9

2 years ago

0.1.4

2 years ago

0.1.3

2 years ago

0.1.6

2 years ago

0.1.5

2 years ago

0.1.0

2 years ago

0.0.1

2 years ago