@easypost/easy-ui-icons

中文文档
1.0.0-alpha.62发布于 2026/11/07零依赖构建来源已验证近 30 天下载 2877

Easy UI Icons is a package containing the icons that experiences can use to build on the EasyPost platform, and contains SVG files in the svg directory.

原始使用文档
文档目录7 节
  1. Getting started
  2. Installation
  3. Usage
  4. SVG files
  5. Development
  6. Commands
  7. Adding an icon

Easy UI Icons

Easy UI Icons is a package containing the icons that experiences can use to build on the EasyPost platform, and contains SVG files in the svg directory.

Easy UI Icons generally uses a subset of Material Symbols.

Set: Material Symbols
Style: Outlined
Fill: 0
Weight: 300
Grade: Normal
Size: 48dp

Getting started

Although it’s possible to use this package directly, we recommend using the icons in this package through Easy UI React in combination with the Icon component.

Installation

  1. Install Easy UI React (instructions) if you haven’t already.

  2. Install Easy UI Icons as a dependency:

    Using npm:

    npm install @easypost/easy-ui-icons --save
    

Usage

Import the Icon component from Easy UI React and any icon from Easy UI Icons into your project.

  1. Import the icon component from Easy UI React:

    import Icon from "@easypost/easy-ui/Icon";
    
  2. Import an icon from Easy UI Icons:

    import CheckCircleIcon from "@easypost/easy-ui-icons/CheckCircle";
    
  3. Pass the imported Easy UI icon to the symbol prop of the Icon component:

    <Icon symbol={CheckCircleIcon} />
    

Icons imported as illustrated above will assume a weight of 300. To import an icon with a different weight, add the weight as a suffix to the path.

import Icon400 from "@easypost/easy-ui/Icon400";

SVG files

For projects that don’t use React and need the raw SVG, icons are available as *.svg files in the svg folder.

import svgFile from "@easypost/easy-ui-icons/svg/Info.svg";

Development

Commands

CommandRuns
npm run buildBuilds the icons project
npm run cleanRemoves temp directories
npm run devBuilds the icons project on file changes

Adding an icon

Add icons to the src/ folder. Easy UI Icons supports custom SVG files and JSON files referencing Material Symbol configurations.

All icons in src/ are transpiled to React components and re-exported as raw SVGs on build.

Material Symbols

Add a new Material Symbol icon by specifying a named JSON file with a Material Symbols configuration.

Check.json:

{
  "name": "check",
  "style": "outlined",
  "source": "@material-symbols/svg-300"
}

To add a new Material Symbol icon with a weight other than 300, update the above to reflect it as so; using a weight of 400 as an example:

Check400.json:

{
  "name": "check",
  "style": "outlined",
  "source": "@material-symbols/svg-400"
}

版本与发布记录

@easypost/easy-ui-icons 共发布 63 个版本,首次发布于 2023/03/30;过去 12 个月发布了 13 个版本。最新版本附带 npm provenance 构建来源证明,可追溯到公开的 CI 构建记录。

版本发布日期距今
1.0.0-alpha.62latest2026/11/076 天前
1.0.0-alpha.612026/09/112 个月前
1.0.0-alpha.602026/09/012 个月前
1.0.0-alpha.592026/08/312 个月前
1.0.0-alpha.582026/08/133 个月前
1.0.0-alpha.572026/08/123 个月前

其他发布通道:alpha → 1.0.0-alpha.0。

关于 @easypost/easy-ui-icons 的常见问题

@easypost/easy-ui-icons 是什么?

Easy UI Icons is a package containing the icons that experiences can use to build on the EasyPost platform, and contains SVG files in the svg directory.

如何安装 @easypost/easy-ui-icons?

在项目目录运行 npm install @easypost/easy-ui-icons,或使用 pnpm add / yarn add / bun add。

@easypost/easy-ui-icons 支持 TypeScript 吗?

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

@easypost/easy-ui-icons 可以商用吗?

@easypost/easy-ui-icons 使用 未声明 许可。package.json 没有声明许可证。没有许可证的代码默认保留全部权利,商用前请联系作者或查看仓库中的 LICENSE 文件。以上为概括,不构成法律意见,请以许可原文为准。

@easypost/easy-ui-icons 的下载量有多少?

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

@easypost/easy-ui-icons 还在维护吗?

最新版本 1.0.0-alpha.62 发布于 2026/11/07(6 天前);至今共发布 63 个版本,其中过去 12 个月发布了 13 个;首次发布于 2023/03/30。发布频率只是参考信号:功能稳定的工具可能很少需要更新,建议结合源码仓库的 issue 和提交记录判断。