@avaya/neo-react

中文文档
1.4.25发布于 2025/11/21SEE LICENSE IN LICENSE.mdTypeScriptESM + CJS近 30 天下载 2541

This is the React version of the shared library called 'NEO' built by Avaya

原始使用文档
文档目录7 节
  1. Install
  2. Example Usage
  3. Project Recommendations
  4. Vite w/ TS
  5. Adding to this library
  6. other readme files
  7. License

Netlify Status github workflow status npm version Coverage

Neo React Component Library

This is the React version of the shared library called "NEO" buit by Avaya (storybook site)

Install

npm i @avaya/neo-react
yarn add @avaya/neo-react
pnpm add @avaya/neo-react

Example Usage

At the root of your application, import the CSS styles via:

import "@avaya/neo-react/avaya-neo-react.css";

Then, simply import the component(s) that you'd like to use, see the documentation site for more examples.

import { IconNamesType, NoContent } from "@avaya/neo-react";

export const Example = () => {
  const agentIconName: IconNamesType = "agent";
  return <NoContent icon={agentIconName} text={"Agent has no content"} />;
};

NOTE: if you are using Astro, add the following to your astro.config.mjs (link to Astro docs on "why" to do this):

export default defineConfig({
  vite: {
    ssr: {
      noExternal: ["avaya-neo-react"],
    },
  },
});

NOTE: The Neo CSS Library is included with the Neo React Library. If you install the Neo React Library, you do not need to install or import from the CSS Library.

Project Recommendations

Vite w/ TS

This team has experience building projects (both apps and libraries) using CRA (create-react-app), Vite, Webpack, Parcel, and Rollup. Of those, we recommend using Vite to build out brand-new projects. Vite has shown itself to be not only a faster build tool, but also to be a better DX (Developer eXperience) due to its excellent documentation and intelligent defaults. See this article for some further details on those points.

Example app creation with Vite using React+TS: pnpm create vite my-react-ts-app --template react-ts

This team also has experience building projects with the package managers NPM, Yarn (classic), and PNPM. Of the three, we have had good experiences with both Yarn (classic) and PNPM and recommend either of those.

Adding to this library

If you would like to contribute to this project, you can start in our how to dev doc

other readme files

License

Copyright 2020-2024 Avaya Inc. All Rights Reserved.

版本与发布记录

@avaya/neo-react 共发布 172 个版本,首次发布于 2021/11/03;过去 12 个月发布了 1 个版本。

版本发布日期距今
1.4.25latest2025/11/2111 个月前
1.4.242025/10/091.1 年前
1.4.232025/09/261.1 年前
1.4.222025/08/121.2 年前
1.4.212025/06/241.4 年前
1.4.202025/06/241.4 年前

关于 @avaya/neo-react 的常见问题

@avaya/neo-react 是什么?

This is the React version of the shared library called 'NEO' built by Avaya

如何安装 @avaya/neo-react?

在项目目录运行 npm install @avaya/neo-react,或使用 pnpm add / yarn add / bun add。它还需要宿主项目提供 peer 依赖:react(18.3.1)、downshift(7.6.2)、react-dom(18.3.1)、react-table(7.8.0)、@dnd-kit/core(6.3.1)、@dnd-kit/sortable(10.0.0)、@dnd-kit/modifiers(9.0.0)、@dnd-kit/utilities(3.2.2)、@tanstack/react-table(8.21.2)、react-roving-tabindex(3.2.0)。npm 7 及以上与 pnpm 8 及以上默认会自动安装必需的 peer 依赖,Yarn 需要手动安装。

@avaya/neo-react 支持 TypeScript 吗?

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

@avaya/neo-react 支持 ESM 还是 CommonJS?

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

@avaya/neo-react 需要什么版本的 Node.js?

package.json 的 engines 字段要求 Node.js >=16。版本不符时 npm 默认只给出警告,开启 engine-strict 后会拒绝安装。

@avaya/neo-react 可以商用吗?

@avaya/neo-react 使用 SEE LICENSE IN LICENSE.md 许可。许可条款写在包内的独立文件中,请阅读该文件确认可否商用。以上为概括,不构成法律意见,请以许可原文为准。

@avaya/neo-react 的下载量有多少?

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

@avaya/neo-react 还在维护吗?

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