npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2025 – Pkg Stats / Ryan Hefner

@airqo/icons-vue

v0.2.3

Published

Production-ready Vue icon library with 1,383+ TypeScript components and tree-shakable imports

Readme

@airqo/icons-vue

AirQo Icons Vue

Production-ready Vue 3 icon library with 1,383+ TypeScript components

npm version bundle size Vue 3 TypeScript

Getting StartedDocumentationIcon BrowserExamples


Features

  • 🎯 Comprehensive - 1,383 carefully crafted icons across 22 categories
  • ⚡ Vue 3 Optimized - Built with Composition API and <script setup>
  • 🔍 Tree-shakable - Import only what you need, ~6.4MB total
  • 📱 SSR Ready - Works with Nuxt.js and SSR frameworks
  • 🎨 Fully Customizable - Size, color, class support
  • 🌍 Global Ready - 196+ country flags included
  • 💪 TypeScript - Full type safety and IntelliSense

Getting Started

Installation

# npm
npm install @airqo/icons-vue

# yarn
yarn add @airqo/icons-vue

# pnpm
pnpm add @airqo/icons-vue

Basic Usage

<template>
  <div class="flex items-center gap-4">
    <AqHome01 :size="24" class="text-blue-600" />
    <AqBarChart01 :size="32" color="#10b981" />
    <AqUganda :size="20" class="border rounded" />
  </div>
</template>

<script setup>
import { AqHome01, AqBarChart01, AqUganda } from '@airqo/icons-vue';
</script>

API Reference

Icon Props

All icon components accept these props:

interface IconProps {
  size?: number | string; // Default: 24
  color?: string; // Default: 'currentColor'
  class?: string; // CSS classes
}

Usage Examples

<template>
  <!-- Default size (24px) -->
  <AqHome01 />

  <!-- Custom size -->
  <AqBarChart01 :size="32" />
  <AqSettings01 size="2rem" />

  <!-- Custom color -->
  <AqHeart color="#ef4444" />
  <AqSun color="rgb(251, 191, 36)" />

  <!-- With CSS classes -->
  <AqSearch01 :size="20" class="text-gray-600 hover:text-gray-800 transition-colors" />

  <!-- Combining all props -->
  <AqNotification01 :size="28" color="#8b5cf6" class="animate-pulse" />
</template>

Icon Categories

The library includes 1,383 icons across 22 categories:

| Category | Count | Examples | | ----------------- | ----- | -------------------------------------------------- | | General | 197 | AqHome01, AqSettings01, AqUser01 | | Arrows | 92 | AqArrowUp, AqChevronRight, AqRefreshCw01 | | Charts | 49 | AqBarChart01, AqLineChart01, AqPieChart01 | | Communication | 58 | AqMail01, AqMessageCircle01, AqPhone | | Weather | 52 | AqSun, AqCloud01, AqRain, AqSnowflake01 | | Flags | 196 | AqUganda, AqKenya, AqUnitedStates | | Finance | 79 | AqCreditCard01, AqCurrencyDollar, AqWallet01 | | Development | 57 | AqCode01, AqTerminal, AqGitBranch | | Files | 58 | AqFile01, AqFolder01, AqDownload01 | | Media | 108 | AqPlay, AqPause, AqVolume01 | | + 12 more | 437 | Maps, Security, Time, Users, etc. |

Framework Integration

Nuxt.js

<!-- pages/index.vue -->
<template>
  <div>
    <h1 class="flex items-center gap-2">
      <AqAirqo :size="32" />
      Air Quality Dashboard
    </h1>
    <AqBarChart01 :size="48" class="text-blue-500" />
  </div>
</template>

<script setup>
import { AqAirqo, AqBarChart01 } from '@airqo/icons-vue';
</script>

Vite + Vue 3

// main.js
import { createApp } from 'vue';
import App from './App.vue';

const app = createApp(App);
app.mount('#app');
<!-- App.vue -->
<template>
  <div class="app">
    <header class="flex items-center gap-2">
      <AqHome01 />
      <h1>My App</h1>
    </header>
  </div>
</template>

<script setup>
import { AqHome01 } from '@airqo/icons-vue';
</script>

Advanced Usage

Global Registration

// main.js
import { createApp } from 'vue';
import * as AirQoIcons from '@airqo/icons-vue';

const app = createApp(App);

// Register all icons globally (not recommended for production)
Object.entries(AirQoIcons).forEach(([name, component]) => {
  if (name.startsWith('Aq')) {
    app.component(name, component);
  }
});

Dynamic Icons

<template>
  <component :is="iconComponent" :size="24" :color="iconColor" />
</template>

<script setup>
import { ref, computed } from 'vue';
import { AqHome01, AqSettings01, AqUser01 } from '@airqo/icons-vue';

const iconName = ref('home');
const iconColor = ref('#6366f1');

const iconComponent = computed(() => {
  const iconMap = {
    home: AqHome01,
    settings: AqSettings01,
    user: AqUser01,
  };
  return iconMap[iconName.value] || AqHome01;
});
</script>

Composables

// composables/useIcons.js
import { ref } from 'vue';

export function useIcons() {
  const iconSize = ref(24);
  const iconColor = ref('currentColor');

  const setIconTheme = (theme) => {
    iconColor.value = theme === 'dark' ? '#f8fafc' : '#1e293b';
  };

  return {
    iconSize,
    iconColor,
    setIconTheme,
  };
}

Styling & Theming

CSS Classes

<template>
  <!-- Tailwind CSS -->
  <AqHeart class="text-red-500 hover:text-red-600 transition-colors" />

  <!-- Custom CSS -->
  <AqStar class="star-icon" />
</template>

<style scoped>
.star-icon {
  color: #fbbf24;
  filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.1));
  transition: all 0.2s ease;
}

.star-icon:hover {
  transform: scale(1.1);
  color: #f59e0b;
}
</style>

CSS Variables

:root {
  --icon-color-primary: #3b82f6;
  --icon-color-secondary: #6b7280;
  --icon-size-sm: 16px;
  --icon-size-md: 24px;
  --icon-size-lg: 32px;
}

.icon-primary {
  color: var(--icon-color-primary);
}

Bundle Information

  • Total Bundle: ~6.4MB (uncompressed), ~1.8MB (gzipped)
  • Tree-shakable: Only imports what you use
  • Individual Icon: ~4-6KB each
  • Zero Dependencies: Pure Vue 3 components

Browser Support

  • Vue 3.3+: Full support
  • Modern Browsers: Chrome, Firefox, Safari, Edge
  • SSR: Next.js, Quasar, Vite SSR
  • Mobile: iOS Safari, Chrome Mobile

Contributing

We welcome contributions! Please see our Contributing Guide.

License

MIT © AirQo Organization