iconsax

Iconsax web component — 1200+ free icons out of the box, Pro icons via `iconsax sync`. Works in React, Vue, Svelte and plain HTML.
37,176
Install
npm install iconsax
Latest Version:0.1.1
License:MIT
Last Updated:Jul 14, 2026
Links: npm

iconsax

Web component <iconsax-icon> — works in React, Vue, Svelte, or plain HTML because it's a native Custom Element, not a component tied to one framework.

Install

npm install iconsax
import "iconsax" // registers <iconsax-icon> as a custom element

Usage — free icons (1200+, no key, no network)

<iconsax-icon name="home" type="linear" size="24" color="#6366f1"></iconsax-icon>
  • type: bold · broken · bulk · linear · outline · twotone (default linear)
  • size: px (default 24)
  • color: any CSS color (default currentColor)

Usage — Pro icons

  1. Write the icon in your code with the pro attribute:
<iconsax-icon pro name="rocket" type="bold" size="24"></iconsax-icon>
  1. Run the CLI with your API key (Settings → API Key on iconsax.io) to resolve it:
npx iconsax sync --key ix_pro_xxxxx

This scans your code, asks the API for any new Pro icons you use, and saves them to iconsax-pro.icons.json at your project root — commit that file like any other asset.

  1. Register them once in your app's entry point:
import proIcons from "./iconsax-pro.icons.json"
import { registerProIcons } from "iconsax"

registerProIcons(proIcons)

An icon that's already been resolved keeps working in production forever, with no network dependency and regardless of whether your subscription stays active — the license check only happens at sync time, never at runtime.

Development (iconsax.io monorepo)

npm run build:icons:free   # from repo root — generates server/assets/icons-free.json
npm --prefix packages/iconsax run build   # generates dist/manifest.json + dist/data/*.json

Related Packages

@incremark/icons

Incremark icons - SVG icon library for Vue, React, and Svelte components.

27,270 282
@noho-digital/remix-icons-svg

All ~3200 Remix Icons as importable SVG strings with framework wrapper component...

12,438
shapeso

Shape's icons from the terminal: search 11,160 catalog icons from Shape, Lucide,...

362
@zeus-js/output-icons

No-runtime icon output plugin for Zeus component compiler host

20,550 5
@christicons/core

Core Christicons metadata and raw SVG exports.

1,938

Version History

Version Released License
0.1.1 MIT
0.1.0 MIT
0.0.1 GPL-3.0