@brightlayer-ui/icons-mui

中文文档
4.4.0发布于 2026/10/27BSD-3-ClauseTypeScriptCommonJS零依赖近 30 天下载 1.9万

Brightlayer UI icons for MUI

原始使用文档
文档目录9 节
  1. Installation
  2. Usage
  3. Angular
  4. React
  5. Applying Different Colors
  6. Available Icons
  7. Building Icon Set (for contributors)
  8. Publishing
  9. Browser Support

Build npm

Brightlayer UI Icons for MUI

This library contains componentized svg icons from @brightlayer-ui/icons for use in React applications using MUI. The icons are made available in the same way that MUI exposes the Material Icons.

Installation

To install the Brightlayer UI mui icons from NPM as a dependency for your project, you can run one of the following commands in your project root:

npm install --save @brightlayer-ui/icons-mui
or
yarn add @brightlayer-ui/icons-mui

NOTE (Peer Dependencies): Using this package requires you to have @mui/material and @mui/icons-material defined as dependencies in your project's package.json file.

Usage

Angular

This package is intended for use only in React applications. For a way to link svg icons for use in Angular applications, see @brightlayer-ui/icons.

React

Once you have installed the npm module, you can import the icon components into your application as follows:

import myIcon from '@brightlayer-ui/icons-mui/MyIcon';
...
<myIcon></myIcon>

If you are importing multiple icons, you can save some space by using named imports from the package root:

import {FirstIcon, SecondIcon, ThirdIcon} from '@brightlayer-ui/icons-mui';

Applying Different Colors

To change the color of the icon you are using, simply set the CSS color property. This property is inheritable, so if the property is not set on your icon, it will be inherited from the parent container.

<FirstIcon style={{color: 'red'}}></FirstIcon>

Available Icons

See the Iconography on brightlayer-ui.github.io for a list of currently available icons.

NOTE: When using this package, icon names are in TitleCase (e.g., bypass_battery --> BypassBattery).

Building Icon Set (for contributors)

To build the icons-mui package (e.g., after new icons are added to Brightlayer UI):

git clone https://github.com/etn-ccis/blui-icons
cd packages/mui
yarn build

This will populate the /dist folder with all of the icon components as well as copy over necessary files for publishing (Readme, package.json, etc.).

When building the icons-mui package, it imports the latest icons from the @brightlayer-ui/icons-svg package, so when new icons are added, @brightlayer-ui/icons-svg must be published to NPM before this package can be updated.

Publishing

To publish the package:

yarn build
cd dist
npm version < patch | minor | major >
npm publish

NOTE: This package must be published from the /dist folder, not the root directory.

Browser Support

Brightlayer UI Icons for MUI will work with any modern browser. For details refer to our Browser Support documentation.

版本与发布记录

@brightlayer-ui/icons-mui 共发布 22 个版本,首次发布于 2021/11/02;过去 12 个月发布了 7 个版本。

版本发布日期距今
4.4.0latest2026/10/2712 天前
4.4.0-alpha.1alpha2026/09/241 个月前
4.4.0-alpha.02026/09/181 个月前
4.3.02026/05/295 个月前
4.2.12026/04/286 个月前
4.2.02026/03/317 个月前

其他发布通道:beta → 3.0.0-beta.0,alpha → 4.4.0-alpha.1。

关于 @brightlayer-ui/icons-mui 的常见问题

@brightlayer-ui/icons-mui 是什么?

Brightlayer UI icons for MUI

如何安装 @brightlayer-ui/icons-mui?

在项目目录运行 npm install @brightlayer-ui/icons-mui,或使用 pnpm add / yarn add / bun add。它还需要宿主项目提供 peer 依赖:@mui/material(^7.1.1)、@mui/icons-material(^7.1.1)。npm 7 及以上与 pnpm 8 及以上默认会自动安装必需的 peer 依赖,Yarn 需要手动安装。

@brightlayer-ui/icons-mui 支持 TypeScript 吗?

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

@brightlayer-ui/icons-mui 支持 ESM 还是 CommonJS?

以 CommonJS 形式发布,可以直接 require();在 ES Module 项目中也可以用 import 引入(Node.js 会把 module.exports 作为默认导出)。

@brightlayer-ui/icons-mui 可以商用吗?

@brightlayer-ui/icons-mui 使用 BSD-3-Clause 许可。宽松许可:允许商业使用、修改和再分发,通常只需在分发时保留原版权与许可声明。另外不得用原作者名义为衍生产品背书。以上为概括,不构成法律意见,请以许可原文为准。

@brightlayer-ui/icons-mui 的下载量有多少?

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

@brightlayer-ui/icons-mui 还在维护吗?

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