@eightfold.ai/octuple

中文文档
2.59.6发布于 2026/11/11MITTypeScriptESM + CJS近 30 天下载 8076

Eightfold Octuple Design System Component Library

原始使用文档
文档目录10 节
  1. About
  2. Changelog
  3. Install
  4. Usage
  5. React 19
  6. How can I contribute?
  7. Reporting bugs and suggesting enhancements using Eightfold'…
  8. Create an issue on GitHub
  9. Pull requests
  10. License

Eightfold Octuple Design System Component Library

npm version node codecov Build License: MIT

npm package minimized gzipped size bundlesize-css-image bundlesize-locale-image

About

Octuple creates a shared language and visual consistency across different pages and channels. It represents a collection of assets, utilities, and React components for building web applications.

  • Design and development work may be created and replicated quickly at scale.
  • Alleviates strain on design resources to focus on larger, more complex problems.
  • Creates a unified language within and between cross-functional teams.
  • Creates visual consistency across products, channels, and potentially siloed departments.
  • Serves as an educational tool and reference for designers and content contributors.

Visit the Octuple Storybook site.

Changelog

You can view the complete list of additions, fixes, and changes in the change log

Install

To install Octuple in your project run the following command:

Yarn

yarn add @eightfold.ai/octuple

NPM

npm install @eightfold.ai/octuple

Usage

import { Button } from '@eightfold.ai/octuple';

export const App = () => (
  <>
    <Button text={'Button'} />
  </>
);

And import styles manually:

import '@eightfold.ai/octuple/lib/octuple.css';

React 19

Octuple supports React 16.8 and up, including React 19. Components need no extra setup.

The one exception is DialogHelper, which renders imperatively. React 19 removed ReactDOM.render, so a React 19 app has to tell Octuple how to render. Register a renderer once at startup, before any DialogHelper call:

import { unstableSetRender, createRootRenderer } from '@eightfold.ai/octuple';
import { createRoot } from 'react-dom/client';

unstableSetRender(createRootRenderer(createRoot));

Without it, DialogHelper.show() logs the setup step and does nothing. createRootRenderer caches one root per container, so re-showing a dialog on the same container updates it in place rather than remounting. A custom renderer is fine as long as it does the same:

unstableSetRender((node, container) => {
  // Must reuse an existing root for this container.
  const root = getOrCreateRoot(container);
  root.render(node);
  return () => root.unmount();
});

On React 18 and below nothing needs registering — the legacy path is used automatically.

How can I contribute?

There are many ways to contribute to the Octuple project. Review the following sections to find out which one is right for you.

Reporting bugs and suggesting enhancements using Eightfold's apps and services

Please use the 'Get Help' tool at the bottom of any screen to submit bugs and suggestions.

Get Help

Create an issue on GitHub

New Issue

Pull requests

Review the guidance for pull requests and the contribution workflow in our contributor guide.

License

MIT (c) 2024 Eightfold

版本与发布记录

@eightfold.ai/octuple 共发布 285 个版本,首次发布于 2022/04/02;过去 12 个月发布了 42 个版本。

版本发布日期距今
2.59.6latest2026/11/112 天前
2.59.52026/11/103 天前
2.59.42026/10/2123 天前
2.59.32026/10/1430 天前
2.59.22026/10/1430 天前
2.59.12026/09/221 个月前

关于 @eightfold.ai/octuple 的常见问题

@eightfold.ai/octuple 是什么?

Eightfold Octuple Design System Component Library

如何安装 @eightfold.ai/octuple?

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

@eightfold.ai/octuple 支持 TypeScript 吗?

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

@eightfold.ai/octuple 支持 ESM 还是 CommonJS?

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

@eightfold.ai/octuple 可以商用吗?

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

@eightfold.ai/octuple 的下载量有多少?

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

@eightfold.ai/octuple 还在维护吗?

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