awesome-repositories.com
博客
MCP
awesome-repositories.com

通过 AI 驱动的搜索,发现最优秀的开源仓库。

探索精选搜索开源替代品自托管软件博客网站地图
项目关于排名机制媒体报道MCP 服务器
法律隐私政策服务条款
© 2026 Bringes Technology SRL·VAT RO45896025·hello@awesome-repositories.com
·
antfu avatar

antfu/unplugin-icons

0
View on GitHub↗
4,876 星标·157 分支·TypeScript·MIT·5 次浏览www.npmjs.com/package/unplugin-icons↗

Unplugin Icons

unplugin-icons 是一个通用的图标组件提供程序和构建时资产优化器,将多种 SVG 库转换为统一的跨框架接口。它作为一个 SVG 图标流水线,将来自不同集合的数千个图标转换为按需组件或原始字符串,供不同的前端框架使用。

该工具提供了一个跨框架图标库,通过仅包含源代码中引用的特定图标来优化包大小。它还通过自动图标导入和使用别名将长集合名称映射到较短标识符,简化了开发工作流。

该系统通过允许加载自定义图标集和应用全局转换来管理 SVG 组件。它还包括视觉配置功能,可通过全局设置或查询参数自定义图标大小和颜色。

Features

  • Cross-Framework Providers - Provides a universal system to transform diverse SVG libraries into on-demand components for multiple frontend frameworks.
  • Icon Set Integrations - Integrates thousands of icons from diverse libraries as consistent components across various frontend frameworks.
  • Bundle Size Optimization - Reduces bundle size by extracting only the specific icons referenced in the source code.
  • SVG Asset Pipelines - Implements a comprehensive pipeline for importing, transforming, and optimizing SVG assets into UI components.
  • SVG Icon Components - Converts icons from various sets into reusable components compatible across different UI frameworks.
  • Icon Libraries - Provides a unified interface for accessing multiple icon sets as components across different environments.
  • Frontend Asset Optimization - Reduces final bundle sizes by loading only the specific icons used in the source code.
  • Build-Time Component Generation - Transforms icon data into framework-specific components during the build process based on import statements.
  • SVG Component Transformations - Converts raw SVG paths and attributes into valid framework components during the build process.
  • Tree-Shakeable Icon Bundles - Ensures only referenced icons are included in the final bundle to minimize asset size.
  • Icon Appearance Customizations - Modifies icon size, color, and visual attributes via global configuration and query parameters.
  • Automatic Component Imports - Automatically injects referenced icons into templates to eliminate the need for explicit import statements.
  • Icon Alias Mappings - Provides a lookup table to map short identifiers to full icon collection names during module resolution.
  • Virtual Modules - Intercepts module requests to provide dynamic icon components without requiring physical files on disk.
  • Collection Aliasing - Maps long icon collection names to short identifiers to simplify imports within a project.
  • Import URL Parameter Injection - Allows modifying generated icon components by parsing parameters passed within the import URL string.
  • Build-Time Icon Transformations - Applies global modifications to custom icons during the loading phase to ensure visual consistency.
  • Asset Loaders - Accesses icon sets as components.
  • Icon Frameworks and Utilities - A plugin for on-demand icon loading in modern build tools.

Star 历史

antfu/unplugin-icons 的 Star 历史图表antfu/unplugin-icons 的 Star 历史图表

AI 搜索

探索更多 awesome 仓库

用简单的语言描述您的需求 —— AI 将根据相关性为您从数千个精选开源项目中进行排序。

Start searching with AI

Unplugin Icons 的开源替代方案

相似的开源项目,按与 Unplugin Icons 的功能重合度排序。
  • gorangajic/react-iconsgorangajic 的头像

    gorangajic/react-icons

    12,596在 GitHub 上查看↗

    react-icons is an SVG icon component library and multi-pack aggregator for React applications. It provides a single interface to integrate and manage multiple third-party SVG icon sets as individual components. The library is designed as a tree-shakable icon set, allowing the import of specific icons to reduce final bundle sizes. It includes a global icon style provider to define default colors, sizes, and accessibility titles across all embedded icons. The project covers multi-library icon management and frontend asset optimization to maintain a consistent design language while improving pa

    TypeScript
    在 GitHub 上查看↗12,596
  • fortawesome/react-fontawesomeFortAwesome 的头像

    FortAwesome/react-fontawesome

    3,732在 GitHub 上查看↗

    This project is a Font Awesome React component library and SVG icon framework used for rendering vector graphics within React applications. It provides a type-safe implementation for managing, layering, and rendering icons through prop-driven SVG generation. The library is designed as a tree-shakable asset delivery system, allowing build tools to exclude unused icons from the final bundle to optimize application size. It utilizes TypeScript to provide compile-time validation for icon names and properties. The framework covers a wide range of visual capabilities, including icon sizing, rotati

    TypeScriptfontawesomefrontendjavascript
    在 GitHub 上查看↗3,732
  • mingcute-design/mingcute-iconsmingcute-design 的头像

    mingcute-design/mingcute-icons

    1,588在 GitHub 上查看↗

    Mingcute Icons is a comprehensive library of scalable vector icons designed for consistent branding across web and mobile interfaces. The collection provides assets in multiple formats, including native components for frontend frameworks, webfont sets for typography-based styling, and raw vector files for design software integration. The project distinguishes itself through its flexible delivery methods, which allow developers to choose between component-based rendering for programmatic control over visual properties or CSS-based mapping for standard layout integration. To support efficient d

    CSSiconicon-fonticon-pack
    在 GitHub 上查看↗1,588
  • unplugin/unplugin-iconsunplugin 的头像

    unplugin/unplugin-icons

    4,774在 GitHub 上查看↗

    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 diff

    TypeScripticonifyiconsjsx
    在 GitHub 上查看↗4,774
查看 Unplugin Icons 的所有 30 个替代方案→

常见问题解答

antfu/unplugin-icons 是做什么的?

unplugin-icons 是一个通用的图标组件提供程序和构建时资产优化器,将多种 SVG 库转换为统一的跨框架接口。它作为一个 SVG 图标流水线,将来自不同集合的数千个图标转换为按需组件或原始字符串,供不同的前端框架使用。

antfu/unplugin-icons 的主要功能有哪些?

antfu/unplugin-icons 的主要功能包括:Cross-Framework Providers, Icon Set Integrations, Bundle Size Optimization, SVG Asset Pipelines, SVG Icon Components, Icon Libraries, Frontend Asset Optimization, Build-Time Component Generation。

antfu/unplugin-icons 有哪些开源替代品?

antfu/unplugin-icons 的开源替代品包括: gorangajic/react-icons — react-icons is an SVG icon component library and multi-pack aggregator for React applications. It provides a single… mingcute-design/mingcute-icons — Mingcute Icons is a comprehensive library of scalable vector icons designed for consistent branding across web and… fortawesome/react-fontawesome — This project is a Font Awesome React component library and SVG icon framework used for rendering vector graphics… unplugin/unplugin-icons — unplugin-icons is a build-time plugin that integrates with modern bundlers to import icons from popular icon sets… yulimchen/vue3-h5-template — This project is a pre-configured foundation for building mobile-responsive web applications using Vue 3 and Vite. It… joanzapata/android-iconify — android-iconify is a multi-provider icon framework and library for Android applications. It enables the integration…