@easypost/easy-ui

中文文档
1.0.0-alpha.151发布于 2026/11/11构建来源已验证近 30 天下载 3163

Easy UI is a component library designed to help developers create the best experience for shippers who use EasyPost.

原始使用文档
文档目录5 节
  1. Getting Started
  2. Fonts
  3. Server Rendering
  4. Development
  5. Commands

Easy UI

Easy UI is a component library designed to help developers create the best experience for shippers who use EasyPost.

Getting Started

  1. Install Easy UI using npm or your project's package manager:
npm install @easypost/easy-ui --save
  1. Include the Easy UI CSS file in your app entry point:
import "@easypost/easy-ui/style.css";
  1. Render your app inside the Easy UI Provider:
import { Provider as EasyUIProvider } from "@easypost/easy-ui/Provider";

const root = ReactDOM.createRoot(document.getElementById("root"));
root.render(
  <EasyUIProvider>
    <App />
  </EasyUIProvider>,
);
  1. Use Easy UI components:
import { VerticalStack } from "@easypost/easy-ui/VerticalStack";
import { Button } from "@easypost/easy-ui/Button";

function App() {
  return (
    <VerticalStack>
      <Button>Click me!</Button>
    </VerticalStack>
  );
}

See our Storybook for detailed component documentation.

Fonts

Easy UI uses Poppins font. You can host it yourself or use Google Fonts. For hosting it yourself, Poppins is included in .storybook/public/fonts/poppins.

If hosting yourself, include this declaration in your stylesheets, replacing the path with wherever the fonts are located:

@font-face {
  font-family: "Poppins";
  font-style: normal;
  font-weight: 300;
  font-display: swap;
  src:
    url("/fonts/poppins/poppins-v20-latin-300.woff2") format("woff2"),
    url("/fonts/poppins/poppins-v20-latin-300.woff") format("woff");
}

@font-face {
  font-family: "Poppins";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src:
    url("/fonts/poppins/poppins-v20-latin-400.woff2") format("woff2"),
    url("/fonts/poppins/poppins-v20-latin-400.woff") format("woff");
}

@font-face {
  font-family: "Poppins";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src:
    url("/fonts/poppins/poppins-v20-latin-500.woff2") format("woff2"),
    url("/fonts/poppins/poppins-v20-latin-500.woff") format("woff");
}

@font-face {
  font-family: "Poppins";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src:
    url("/fonts/poppins/poppins-v20-latin-600.woff2") format("woff2"),
    url("/fonts/poppins/poppins-v20-latin-600.woff") format("woff");
}

@font-face {
  font-family: "Poppins";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src:
    url("/fonts/poppins/poppins-v20-latin-700.woff2") format("woff2"),
    url("/fonts/poppins/poppins-v20-latin-700.woff") format("woff");
}

Server Rendering

When server rendering an app that uses Easy UI and React <18, your app must be wrapped with a single instance of React Aria's SSRProvider. If an app is using an additional version of React Aria, ensure there's only one version of @react-aria/ssr using NPM's overrides or Yarn's resolutions property.

Development

We use Storybook to create a simple, hot-reloading playground for development on these components.

Commands

CommandRuns
npm run buildBuilds the project
npm run cleanRemoves temp directories
npm run lintLints the project (ESLint, Stylelint, Prettier)
npm run testTests the project
npm run test:watchTests the project in watch mod

版本与发布记录

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

版本发布日期距今
1.0.0-alpha.151latest2026/11/112 天前
1.0.0-alpha.1502026/11/103 天前
1.0.0-alpha.1492026/11/103 天前
1.0.0-alpha.1482026/11/076 天前
1.0.0-alpha.1472026/11/049 天前
1.0.0-alpha.1462026/11/049 天前

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

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

@easypost/easy-ui 是什么?

Easy UI is a component library designed to help developers create the best experience for shippers who use EasyPost.

如何安装 @easypost/easy-ui?

在项目目录运行 npm install @easypost/easy-ui,或使用 pnpm add / yarn add / bun add。它还需要宿主项目提供 peer 依赖:react(^16.14.0 || ^17.0.0 || ^18.0.0 || ^19.0.0)、react-is(^16.14.0 || ^17.0.0 || ^18.0.0 || ^19.0.0)、react-dom(^16.14.0 || ^17.0.0 || ^18.0.0 || ^19.0.0)。npm 7 及以上与 pnpm 8 及以上默认会自动安装必需的 peer 依赖,Yarn 需要手动安装。

@easypost/easy-ui 支持 TypeScript 吗?

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

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

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

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

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

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

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