@iconify/core

中文文档
4.1.3发布于 2026/11/01MITES Module

Reusable files used by multiple Iconify packages

原始使用文档

Iconify Core

Iconify is the most versatile icon framework.

  • Unified icon framework that can be used with any icon library.
  • Out of the box includes 150+ icon sets with 200,000 icons.
  • Embed icons in HTML with SVG framework or components for front-end frameworks.
  • Embed icons in designs with plug-ins for Figma and Sketch.
  • Add icon search to your applications with Iconify Icon Finder.

For more information visit https://iconify.design/.

Iconify Core contains code shared among various Iconify implementations.

Documentation

Documentation is currently not available because there is no demand for it.

If anyone would like to create custom Iconify implementation and needs documentation for Iconify Core, please create an issue on Iconify repository on GitHub.

You can browse icon components documentation, which explains how most functions exported by core package work. Components mostly just re-export functions from this package.

License

This package is licensed under MIT license.

SPDX-License-Identifier: MIT

Previous versions of this package were dual-licensed under Apache 2.0 and GPL 2.0 licence, which was messy and confusing. This was later changed to MIT for simplicity.

© 2021-PRESENT Vjacheslav Trushkin

版本与发布记录

@iconify/core 共发布 41 个版本,首次发布于 2020/04/28;过去 12 个月发布了 3 个版本。

版本发布日期距今
4.1.3latest2026/11/012 天前
4.1.22026/10/1915 天前
4.1.12026/07/053 个月前
4.1.02025/08/061.2 年前
4.0.02025/04/301.5 年前
3.1.02025/01/041.8 年前

关于 @iconify/core 的常见问题

@iconify/core 是什么?

多个Iconify包使用的可重用文件

如何安装 @iconify/core?

在项目目录运行 npm install @iconify/core,或使用 pnpm add / yarn add / bun add。

@iconify/core 支持 TypeScript 吗?

该包的 package.json 没有声明类型入口。需要类型提示时,可以在 npm 上查找社区维护的 @types/iconify__core 是否存在。

@iconify/core 支持 ESM 还是 CommonJS?

以 ES Module 形式发布,推荐使用 import 引入。在 CommonJS 项目中,Node.js 20.19+ / 22.12+ 可以直接 require() 不含顶层 await 的 ES Module,更早的版本需要改用动态 import()。

@iconify/core 可以商用吗?

@iconify/core 使用 MIT 许可。宽松许可:允许商业使用、修改和再分发,通常只需在分发时保留原版权与许可声明。以上为概括,不构成法律意见,请以许可原文为准。

@iconify/core 还在维护吗?

最新版本 4.1.3 发布于 2026/11/01(2 天前);至今共发布 41 个版本,其中过去 12 个月发布了 3 个;首次发布于 2020/04/28。发布频率只是参考信号:功能稳定的工具可能很少需要更新,建议结合源码仓库的 issue 和提交记录判断。