@exawizards/exabase-design-system-icons-react

中文文档
2.0.0发布于 2026/06/18MITTypeScriptESM + CJS零依赖近 30 天下载 1.8万

React icon library for exaBase Design System

原始使用文档
文档目录10 节
  1. Install
  2. Usage
  3. Size
  4. Color
  5. Accessibility
  6. aria-label
  7. title and titleId
  8. Props
  9. License
  10. Copyright

exaBase Design System Icons React

exaBase Design System Icons (v1.4.0) for React.

Install

npm i @exawizards/exabase-design-system-icons-react

Usage

import { CheckmarkCircleIcon } from "@exawizards/exabase-design-system-icons-react";

function MyComponent() {
  return <CheckmarkCircleIcon />;
}

Each icon is also published as an individual module, so you can import it directly. This is useful to avoid loading the whole icon set in environments without tree-shaking (e.g. dev servers):

import CheckmarkCircleIcon from "@exawizards/exabase-design-system-icons-react/CheckmarkCircleIcon";

If you use Next.js, adding the package to optimizePackageImports rewrites named imports to direct imports automatically:

// next.config.js
module.exports = {
  experimental: {
    optimizePackageImports: ["@exawizards/exabase-design-system-icons-react"],
  },
};

Size

The default icon size is 16. You can change by the size prop:

<CheckmarkCircleIcon size="20" />

Color

Rendred SVG has fill="currentColor" attribute, so their text color is applied. You can the color by the color CSS property:

<CheckmarkCircleIcon style="{ color: red }" />

Accessibility

The output SVG has role="img" and aria-hidden="true" attribute by default. This causes the SVG element to be ignored by screen readers:

<svg role="img" aria-hidden="true" ...>...</svg>

aria-label

If your icons have semantic meaning, you'll need to manually add aria-label attribute. This will not add the aria-hidden="true" attribute.

<CheckmarkCircleIcon aria-label="Success" />

Output:

<svg role="img" aria-label="Success" ...>
  <path ... />
</svg>

title and titleId

Another option is to use title and titleId:

<CheckmarkCircleIcon title="Success" titleId="success-title" />

Output:

<svg role="img" aria-labelledby="success-title" ...>
  <title id="success-title">Success</title>
  <path ... />
</svg>

Props

PropTypeDefaultNote
sizenumber16Set icon height and size.
titlestringundefinedInsert a title element into the svg, and remove the aria-hidden="true" from the svg.
titleIdstringundefinedAdd an id attribute to the title element, and add an aria-labelledby={titleId} attribute.

License

exaBase Design System Icons is licensed under the MIT License.

©️ ExaWizards Inc.

版本与发布记录

@exawizards/exabase-design-system-icons-react 共发布 5 个版本,首次发布于 2024/04/01;过去 12 个月发布了 1 个版本。

版本发布日期距今
2.0.0latest2026/06/184 个月前
1.0.12025/04/231.6 年前
1.0.02025/03/261.6 年前
0.4.02024/04/012 年前
0.3.02024/04/012 年前

关于 @exawizards/exabase-design-system-icons-react 的常见问题

@exawizards/exabase-design-system-icons-react 是什么?

React icon library for exaBase Design System

如何安装 @exawizards/exabase-design-system-icons-react?

在项目目录运行 npm install @exawizards/exabase-design-system-icons-react,或使用 pnpm add / yarn add / bun add。它还需要宿主项目提供 peer 依赖:react(>=16.8.0)。npm 7 及以上与 pnpm 8 及以上默认会自动安装必需的 peer 依赖,Yarn 需要手动安装。

@exawizards/exabase-design-system-icons-react 支持 TypeScript 吗?

支持。包内自带 TypeScript 类型声明(package.json 声明了 types 入口),安装后即可获得类型提示,无需再安装 @types 包。

@exawizards/exabase-design-system-icons-react 支持 ESM 还是 CommonJS?

同时提供 ES Module 与 CommonJS 入口,import 和 require() 都可以使用,打包工具会自动选择合适的版本。

@exawizards/exabase-design-system-icons-react 可以商用吗?

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

@exawizards/exabase-design-system-icons-react 的下载量有多少?

根据 npm 官方下载统计,@exawizards/exabase-design-system-icons-react 在 2026/10/14 – 2026/11/12 这 30 天内被下载 18,436 次,日均约 615 次。下载量会把 CI 构建、镜像同步和作为其他包依赖的安装一并计入,适合横向比较热度,不能直接等同于使用人数。

@exawizards/exabase-design-system-icons-react 还在维护吗?

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