@fluentui/react-northstar

中文文档
0.71.4发布于 2026/04/29MITTypeScriptESM + CJS近 30 天下载 8.5万

A themable React component library.

原始使用文档
文档目录7 节
  1. Contributing
  2. Issues
  3. Documentation and usage examples
  4. FAQs
  5. What is the future of Fluent UI React Northstar?
  6. How can we migrate to Fluent UI React Components v9?
  7. What's happening with Teams support?

Fluent UI - React Northstar (docs)

npm version

This is the home for @fluentui/react-northstar and related packages which were migrated from the microsoft/fluent-ui-react repo.

Status

Fluent UI React Northstar has been superseded by Fluent UI React Components v9. For more details about migration to Fluent UI React Components v9, see Migration documentation.

Versioning

Since the @fluentui/react-northstar packages are on version 0.x, note that:

  1. MINOR versions represent breaking changes
  2. PATCH versions represent fixes and features
  3. There are no deprecation warnings between releases
  4. Consult the CHANGELOG and related issues/PRs for more information

Contributing

See CONTRIBUTING.md for a step-by-step setup and development guide specific to @fluentui/react-northstar.

Issues

If you need to file an issue, please note in the title or description that it refers to @fluentui/react-northstar. List of active issues

Documentation and usage examples

See the doc site at https://aka.ms/fluent-ui.

FAQs

What is the future of Fluent UI React Northstar?

The future of @fluentui/react-northstar is called @fluentui/react-components. It builds on top of many base principles that were present in Northstar, streamlines the API and brings significantly improved performance.

How can we migrate to Fluent UI React Components v9?

Please see the Migration documentation.

What's happening with Teams support?

@fluentui/react-northstar v0.x.x (formerly @fluentui/react v0.x.x) has been the official set of components for Teams. This is still the case and no support is being dropped. New features will only be added to Fluent UI React Components v9.

版本与发布记录

@fluentui/react-northstar 共发布 82 个版本,首次发布于 2020/03/19;过去 12 个月发布了 4 个版本。

版本发布日期距今
0.71.4latest2026/04/296 个月前
0.71.32026/02/258 个月前
0.71.22026/02/258 个月前
0.71.12025/11/2011 个月前
0.71.02025/11/031 年前
0.70.02025/10/301 年前

其他发布通道:experimental → 0.47.10-experimental.0,patch → 0.47.15,beta → 0.66.1-beta.0。

关于 @fluentui/react-northstar 的常见问题

@fluentui/react-northstar 是什么?

A themable React component library.

如何安装 @fluentui/react-northstar?

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

@fluentui/react-northstar 支持 TypeScript 吗?

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

@fluentui/react-northstar 支持 ESM 还是 CommonJS?

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

@fluentui/react-northstar 可以商用吗?

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

@fluentui/react-northstar 的下载量有多少?

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

@fluentui/react-northstar 还在维护吗?

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