awesome-repositories.com
Blog
MCP
awesome-repositories.com

Discover the best open-source repositories with AI-powered search.

ExploreCurated searchesOpen-source alternativesSelf-hosted softwareBlogSitemap
ProjectMCP serverAboutHow we rankPress
LegalPrivacyTerms
© 2026 Bringes Technology SRL·VAT RO45896025·hello@awesome-repositories.com
unplugin avatar

unplugin/unplugin-icons

0
View on GitHub↗
4,774 stars·155 forks·TypeScript·mit·19 viewswww.npmjs.com/package/unplugin-icons↗

Unplugin Icons

unplugin-icons is a build-time plugin that integrates with modern bundlers to import icons from popular icon sets automatically. It detects icon usage in source code and tree-shakes the final bundle to include only the icons actually referenced, reducing unnecessary payload. The plugin also provides a mechanism for loading custom SVG icon collections from local files or remote sources, making them accessible through the same import syntax as built-in sets.

The plugin is framework-agnostic and offers a conventional path resolution scheme for referencing icons by collection and name across different frontend frameworks. A pipeline-based transformation system lets users customize icon appearance—such as size, style, and class—before the SVG is injected into the build. Additionally, it supports importing icons as raw SVG strings for direct use in templates or as framework components, all without runtime overhead.

Automatic icon detection in templates and JSX eliminates manual import statements, while custom icon collection loading and component-based imports extend flexibility. The overall design ensures that icons are handled efficiently and consistently regardless of the build tool or framework in use.

Features

  • Cross-Framework Build Plugins - Works with multiple frontend frameworks to import icons without runtime overhead.
  • Cross-Build-Tool Plugins - Provides a single API that adapts to multiple build tools via a shared plugin interface.
  • Automatic Component Imports - Automatically detects icons used in templates and JSX and imports them without manual statements.
  • Icon Import Path Conventions - Maps import paths like ~icons/collection/name to SVG files using a predefined naming convention.
  • Icon Collections - Provides a single API to access icons from multiple popular icon sets like Material and Font Awesome.
  • Build Plugin Importers - Imports icons from popular icon sets as framework components or raw SVG with automatic tree-shaking.
  • Icon Components - Imports icons from popular sets as framework components with automatic tree-shaking.
  • Custom SVG Loaders - Provides a custom loader mechanism to load user-defined SVG icons from files, inline content, or remote sources.
  • Icon Libraries - Allows importing icons as framework components using a convention-based path with tree-shaking.
  • Template Scan Importers - Automatically resolves and imports icons used in template code, eliminating manual import statements.
  • SVG Component Transformations - Provides a chain of configurable transformations to resize, style, and wrap SVGs as components during the build.
  • Bundler Integration Tools - Integrates with bundlers to include only the icons used in the project source code into the final build.
  • Usage-Based Auto Importers - Scans source code for icon usage and automatically imports only the exact icons used, eliminating unused icons.
  • Custom Source - Loads user-provided SVG files or remote sources as a custom icon collection accessible via the same import syntax.
  • Custom Source Loaders - Enables loading user-defined SVG icons from files, inline content, or remote sources for use alongside built-in collections.
  • Core Frameworks - On-demand icon loading for component-based projects.
  • Icon Libraries - On-demand access to thousands of icons as components.

Star history

Star history chart for unplugin/unplugin-iconsStar history chart for unplugin/unplugin-icons

How this analysis was created: This summary and feature list are AI-generated from collected project material and can contain mistakes. Stars, license and language are imported from GitHub. Inclusion does not mean that we have tested or audited this project. Check the source documentation for any feature you depend on. Learn more on our About page.

AI search

Explore more awesome repositories

Describe what you need in plain English — the AI ranks thousands of curated open-source projects by relevance.

Start searching with AI

Projects sharing features with Unplugin Icons

These projects share indexed features with Unplugin Icons. Shared tags can include platform or build tooling; verify the primary use case before treating a result as a replacement.
  • phosphor-icons/homepagephosphor-icons avatar

    phosphor-icons/homepage

    6,912View on GitHub↗

    Phosphor Icons is an icon library that provides SVG components for React and Vue, designed with tree-shaking support so only the icons actually used are included in the final JavaScript bundle. The library offers runtime customization of icons, allowing developers to override SVG rendering through inline styles, event handlers, and render props. Icons can be styled by passing props to set color, size, and weight for quick visual adjustments in React or Vue applications. The project also includes a webfont-based icon set that can be used in any web page by adding a stylesheet and applying CSS

    TypeScripticon-fonticon-packicons
    View on GitHub↗6,912
  • antfu/unplugin-iconsantfu avatar

    antfu/unplugin-icons

    4,876View on GitHub↗

    unplugin-icons is a universal icon component provider and build-time asset optimizer that transforms diverse SVG libraries into a unified cross-framework interface. It functions as an SVG icon pipeline, converting thousands of icons from various sets into on-demand components or raw strings for use across different frontend frameworks. The tool provides a cross-framework icon library that optimizes bundle sizes by exclusively including the specific icons referenced in the source code. It further simplifies the development workflow through automatic icon importing and the use of aliases to map

    TypeScript
    View on GitHub↗4,876
  • antfu/unplugin-vue-componentsantfu avatar

    antfu/unplugin-vue-components

    4,288View on GitHub↗

    unplugin-vue-components is a build tool that automatically injects import and registration statements for Vue components based on their usage in templates. It functions as a framework-agnostic plugin compatible with multiple build tools, including Vite, Webpack, and Rollup. The project provides automated resolution for components from external UI libraries and supports directory-based namespacing to organize elements by folder. To maintain developer experience, it includes a type generator that creates TypeScript declaration files for components imported at build time. Additional capabilitie

    TypeScript
    View on GitHub↗4,288
  • unplugin/unplugin-vue-componentsunplugin avatar

    unplugin/unplugin-vue-components

    4,288View on GitHub↗

    unplugin-vue-components is a build tool that automatically imports and registers Vue components used in templates, eliminating the need for manual import statements. It functions as a plugin for various bundlers, including Vite and Webpack, to resolve and inject component dependencies during the compilation process. The project features a mapping system that identifies and imports components from popular third-party Vue interface libraries. This resolution logic can be extended via custom resolver extensions to modify how specific UI libraries are discovered and imported. To maintain type sa

    TypeScriptauto-importcomponentsunplugin
    View on GitHub↗4,288
Compare all 30 related projects→

Frequently asked questions

What does unplugin/unplugin-icons do?

unplugin-icons is a build-time plugin that integrates with modern bundlers to import icons from popular icon sets automatically. It detects icon usage in source code and tree-shakes the final bundle to include only the icons actually referenced, reducing unnecessary payload. The plugin also provides a mechanism for loading custom SVG icon collections from local files or remote sources, making them accessible through the same import syntax as built-in sets.

What are the main features of unplugin/unplugin-icons?

The main features of unplugin/unplugin-icons are: Cross-Framework Build Plugins, Cross-Build-Tool Plugins, Automatic Component Imports, Icon Import Path Conventions, Icon Collections, Build Plugin Importers, Icon Components, Custom SVG Loaders.

Which projects share features with unplugin/unplugin-icons?

Projects with overlapping indexed features include: phosphor-icons/homepage — Phosphor Icons is an icon library that provides SVG components for React and Vue, designed with tree-shaking support… antfu/unplugin-icons — unplugin-icons is a universal icon component provider and build-time asset optimizer that transforms diverse SVG… antfu/unplugin-vue-components — unplugin-vue-components is a build tool that automatically injects import and registration statements for Vue… unplugin/unplugin-vue-components — unplugin-vue-components is a build tool that automatically imports and registers Vue components used in templates,… react-icons/react-icons — This project is a comprehensive collection of type-safe SVG icon libraries bundled into a single, consistent… gorangajic/react-icons — react-icons is an SVG icon component library and multi-pack aggregator for React applications. It provides a single…