1.4.1 • Published 10 days ago

@kalimahapps/vue-icons v1.4.1

Weekly downloads
-
License
MIT
Repository
github
Last release
10 days ago

✨ Features

  • Tree-shaking. Only the icons you use will be included in your bundle
  • Easy to use. No need for import statement if used through resolvers with vite.
  • 60,000+ icons from popular icon sets
  • Stylable. You can change color and size of the icons
  • Built for vue3
  • Optimized with SVGO

💽 Installation

PNPM

pnpm add @kalimahapps/vue-icons

NPM

npm install @kalimahapps/vue-icons

🔧 Usage

<template>
	<div class="button">
    <BsCalendar4Range /> Select Date
  </div>
</template>

<script setup>
import { BsCalendar4Range } from '@kalimahapps/vue-icons';
</script>

Using resolvers with unplugin-vue-components

vue-icons provides a resolver that can be used with unplugin-vue-components so you don't have to add import IconName from '@kalimahapps/vue-icons/iconSet' for every icon you want to use.

// vite.config.js
import { defineConfig } from 'vite';
import vue from '@vitejs/plugin-vue';
import VueIconsResolver from '@kalimahapps/vue-icons/resolver';

export default defineConfig({
  plugins: [
    vue(),
    Components({
      resolvers: [
        VueIconsResolver,
      ],
    })
  ],
});

Styling

You can change the color and size of the icons by adding style or class to the icon component.

<template>
	<div class="button">
		<BsCalendar4Range class="icon" />

		<span>Select Date</span>
	</div>
</template>

<script setup>
import { BsCalendar4Range } from '@kalimahapps/vue-icons';
</script>

<style scoped lang="scss">
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.5rem 1rem;
  border: 1px solid #ccc;
  border-radius: 0.25rem;
  background-color: #fff;
  color: #000000;
  cursor: pointer;

  /* Change color and size of the icon */
  .icon {
    color: #c9330a;
    font-size: 1.3em;
    margin-right: 0.5em;
  }

  &:hover {
    background-color: #eee;
  }
}
</style>

📚 Demo

To view the full list of icons, search and copy the import statement, check the demo: https://vue-icons.kalimah-apps.com/

📦 Icon Sets

Icon SetPrefixLicenseVersionCount
FontAudioadMIT1.1155
AcademiconsaiSIL OFL 1.11.9.4157
AkarakMIT1.9.14454
Ant DesignanMIT4.2.1831
Bootstrap IconsbsMIT1.11.32050
BoxiconsbxCC 4.02.1.41632
CarboncaApache-2.011.55.02102
Charm IconschMIT0.18.0261
CoolIconsclCC 4.04.1442
BytesizebyMIT1.4101
CircumciMPL-2.02.0.0288
CodiconscdMIT0.0.35461
Core UI IconscoCC 4.03.0.11569
css.ggcgMIT2.1.1704
DeviconsdeMIT2.16.01516
FluentUI SystemflMIT1.1.2015240
Font AwesomefaCC BY 4.06.5.22045
FeatherfeMIT4.29.1287
GitLabglMIT3.46.0405
GoviconsgvSIL OFL 1.11.6.0136
HealthiconsheMIT0.1.01278
HerohiMIT2.1.3592
Humble IconshuMIT1.10.0247
JamiconsjaMIT3.1.0940
IconoiricMIT7.6.01573
IonIconsioMIT7.3.11355
Line AwesomelaMIT1.2.11544
LineariconsliCC BY-SA 4.0-170
LucideluISC0.372.01456
MajesticonsmiMIT2.1.2760
MakimaCC0 1.0 Universal8.0.0213
Material DesignmdApache-2.04.0.010609
MingCutemcApache-2.02.942926
OcticonsocMIT19.9.0304
OpenWebowSIL Open Font License1.6.3115
PhosphorphMIT2.0.29072
PixelarticonspxMIT1.8.1486
Prime IconsprMIT7.0.0313
QuillquMIT1.0.0133
RadixraMIT1.3.0318
RemixreApache 2.04.2.02860
Simple IconssiCC0 1.011.13.03122
System UIconssuUnlicense-430
TablertaMIT3.2.04158
ThemifythSIL Open Font License (OFL)1.0.1352
TypiconstiCC BY-SA 4.02.1.2336
UniconsunIconScout Simple License3.0.01206
uiw iconsuiMIT2.6.10214
VSCodevsMIT12.7.01254
Weather IconswiSIL OFL 1.12.0.10219
Total69391

🧮 Version History

  • 1.4.1

    • chore: update all icon packages
  • 1.4.0

    • breaking change: fix CoolIcons prefix. It had the same prefix as coreicons co but not it is corrected to be cl.
    • breaking change: Replace official material design repo with a generated one for SVG only.
    • fix: add missing 'ad' entry in package.json
    • chore: Update all icons
  • 1.3.0

    • Add global import. No need to add a set name like @kalimahapps/vue-icons/bs. All icons now can be imported using @kalimahapps/vue-icons
    • Add typescript types
    • Add new icon sets
      • FontAudio
      • Akar
      • Charm Icons
      • CoolIcons
      • GitLab SVGs
      • Humble Icons
      • Lucide
      • Quill
      • Radix
      • System UIcons
    • Refactor code
  • 1.2.0

    • Updated icon packages
    • Updated dev dependencies
    • Added tests
    • Added missing 'cd' to package.json
  • 1.1.5

    • Add missing export "he" to package.json
  • 1.1.3

    • Updated icon packages
    • Updated dev dependencies
  • 1.0.6

    • Fixed bugs
    • Add 2 icon sets (bytesize, codicons)
  • 1.0.5

    • Fixed bugs
    • Added a new icon set (majesticons)
  • 1.0.3

    • Added three icon sets
    • Updated icon packages
    • Fixed minor bugs
  • 1.0.1

    • Added icons resolver
  • 1.0.0

    • Added 23 icon sets
    • Export format is changed to SVG to decrease package size
    • Updated demo UI and search
  • 0.0.7

    • Update icons set
  • 0.0.2

    • Initial Release

🏗️ Other projects

Vue Popper

A Vue 3 tooltip component using popper.js

Vite inherit attrs

A vite plugin that adds support for inheritAttrs in vue-setup

KalimahApps Eslint Config

Comprehensive eslint rules for vue projects with typescript

⚖️ License

This project is licensed under the MIT License For each icons set, please check the icon project licenses accordingly.

🙏 Acknowledgement

This project was inspired by the React Icons package.

1.4.1

10 days ago

1.4.0

12 months ago

1.2.0

1 year ago

1.3.2

1 year ago

1.3.1

1 year ago

1.3.0

1 year ago

1.2.1

1 year ago

1.1.6

1 year ago

1.1.1

1 year ago

1.1.0

1 year ago

1.0.9

1 year ago

1.0.8

1 year ago

1.0.7

1 year ago

1.1.5

1 year ago

1.0.6

1 year ago

1.1.4

1 year ago

1.0.5

1 year ago

1.1.3

1 year ago

1.0.4

1 year ago

1.1.2

1 year ago

1.0.3

1 year ago

1.0.2

2 years ago

1.0.1

2 years ago

1.0.0

2 years ago

0.0.9

2 years ago

0.0.8

2 years ago

0.0.7

2 years ago

0.0.6

2 years ago

0.0.5

2 years ago

0.0.4

2 years ago

0.0.3

2 years ago

0.0.2

2 years ago

0.0.1

2 years ago

0.0.0

2 years ago