iTranslated by AI

The content below is an AI-generated translation. This is an experimental feature, and may contain errors. View original article
🎉

Fluent UI v9 Has Been Released

に公開

I previously published the following article.

https://zenn.dev/karamem0/articles/2020_12_14_120000

As mentioned in the latter part of that article, there was a plan to unify the two Fluent UIs. While I wasn't sure when that would happen, Fluent UI v9 was released in June 2022.

https://react.fluentui.dev

The main feature of Fluent UI v9 is the integration of @fluentui/react (v8: used in Office) and @fluentui/react-northstar (v0: used in Teams), as previously described. Since the site mentioned above also uses the designations v8 and v0, I will follow that convention here. Note that the package name for v9 is @fluentui/react-components.

v9 is based on v0, and v8 functionality is achieved by changing the theme to Web Light or Web Dark. However, the appearance is not perfectly compatible. The properties are also based on v0, but Shims are provided for some components to support v8.

As for theming, BrandVariants has been adopted, allowing for expression through a gradient of 10 to 160. A converter from v8 is also available, so by inputting your primary color on the site below, you can create a reasonable theme.

https://fluentuipr.z22.web.core.windows.net/heads/master/theming-designer/index.html

It is not yet fully mature, and some components remain unimplemented. You can check the roadmap on the page below. It seems it will be a little while longer before it is truly production-ready.

https://github.com/microsoft/fluentui/wiki/Fluent-UI-React-v9-Component-Roadmap

For icons, it is announced that you should use @fluentui/react-icons. Since there is a shortage of available icons at the moment, it is recommended to use @fluentui/react-icons-mdl2 or @fluentui/react-icons-mdl2-branded. Please be aware of the differences in licenses.

Library Name License Type
@fluentui/react-icons MIT License
@fluentui/react-icons-mdl2 MIT License
@fluentui/react-icons-mdl2-branded Microsoft Fabric Assets License

Discussion