@ebay/ui-core-react

中文文档
9.17.1发布于 2026/10/31ISCTypeScriptCommonJS构建来源已验证近 30 天下载 2.1万

Skin components build off React

原始使用文档
文档目录22 节
  1. Requirements
  2. eBayUI Components
  3. Getting Started
  4. Notes
  5. Pass-Through Attributes
  6. Issues
  7. Contributing
  8. Changelog
  9. version 7.x (Skin 18, breaking changes in icon names)
  10. version 6.x (Skin 17, breaking changes in icon names)
  11. version 5.x (Skin 16, breaking changes in event callbacks)
  12. version 4.x (Skin 16, breaking changes in icon names)
  13. version 3.x (Skin 15, some breaking changes in dialog compo…
  14. version 2.x (Skin 15)
  15. version 10.x (Skin 14)
  16. version 9.x (skin 13)
  17. version 8.x (skin 12)
  18. version 6.x (skin 10)
  19. version 5.x (removed less, changed imports to minimize bund…
  20. version 3.x (skin 9, react 16.8 with hooks support)
  21. version 2.x (skin 7, react 16.7)
  22. legacy

ebayui-core-react

eBayUI React components

Demo

Requirements

eBayUI Components

Getting Started

These react components are available as @ebay/ui-core-react package on NPM.

Use npm or yarn to add the package dependency to your project:

yarn add @ebay/ui-core-react @ebay/skin
import { EbayTextbox } from '@ebay/ui-core-react/ebay-textbox'
import { EbayButton } from '@ebay/ui-core-react/ebay-button'

<EbayTextbox placeholder="Enter text here" />
<EbayButton>Submit</EbayButton>

Notes

If you render children components dynamically and don't want to get React key warnings then provide a key:

<EbayParentComponent>
    {items.map((item, index) => (
        <EbayChildComponent key={index}>{item}</EbayChildComponent>
    ))}
</EbayParentComponent>

Pass-Through Attributes

HTML attributes can be used on any component, and they will be passed through to the most prominent tag of the component. The most prominent tag is usually the root or form control, but individual components will note if it varies for specific cases.

Example of usage:

<EbayButton id="my-button" />

Issues

Create an issue on github

Contributing

Changelog

@ebay/ui-core-react

version 7.x (Skin 18, breaking changes in icon names)

version 6.x (Skin 17, breaking changes in icon names)

version 5.x (Skin 16, breaking changes in event callbacks)

version 4.x (Skin 16, breaking changes in icon names)

version 3.x (Skin 15, some breaking changes in dialog components)

version 2.x (Skin 15)

@ebay/ebayui-core-react (obsolete)

version 10.x (Skin 14)

version 9.x (skin 13)

ebayui-core-react (obsolete)

version 8.x (skin 12)

version 6.x (skin 10)

version 5.x (removed less, changed imports to minimize bundle size)

version 3.x (skin 9, react 16.8 with hooks support)

version 2.x (skin 7, react 16.7)

legacy

版本与发布记录

@ebay/ui-core-react 共发布 255 个版本,首次发布于 2022/07/23;过去 12 个月发布了 38 个版本。最新版本附带 npm provenance 构建来源证明,可追溯到公开的 CI 构建记录。

版本发布日期距今
9.17.1latest2026/10/3113 天前
9.17.02026/10/1727 天前
9.16.02026/10/021 个月前
9.15.02026/09/191 个月前
9.14.02026/09/161 个月前
9.13.02026/09/082 个月前

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

关于 @ebay/ui-core-react 的常见问题

@ebay/ui-core-react 是什么?

Skin components build off React

如何安装 @ebay/ui-core-react?

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

@ebay/ui-core-react 支持 TypeScript 吗?

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

@ebay/ui-core-react 支持 ESM 还是 CommonJS?

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

@ebay/ui-core-react 可以商用吗?

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

@ebay/ui-core-react 的下载量有多少?

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

@ebay/ui-core-react 还在维护吗?

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