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 |
Maintainer: luisdanielroviracontreras
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(defaultlinear)size: px (default24)color: any CSS color (defaultcurrentColor)
Usage — Pro icons
- Write the icon in your code with the
proattribute:
<iconsax-icon pro name="rocket" type="bold" size="24"></iconsax-icon>
- 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.
- 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
Version History
| Version | Released | License |
|---|---|---|
| 0.1.1 | MIT | |
| 0.1.0 | MIT | |
| 0.0.1 | GPL-3.0 |