Modern hooks way to pass dynamic styles into components, with additional props isTeams. #25689
-
Hi, We are trying to find the best solution for connecting styles. This HOC approach is taken from the Fluent component library and works like clockwork, typing works, everything is separated into files. But syntax sugar is too much. Lately, I find connecting styles with hooks, no ### Details:
Type declarations.
Thanks a lot. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
Thanks for the question @mishabutuzov , unfortunately, this is a limitation of Fluent v8. If you upgrade to Fluhttps://react.fluentui.dev/?path=/docs/concepts-developer-styling-components--pageent UI v9, hooks are the preferred way of styling |
Beta Was this translation helpful? Give feedback.
Thanks for the question @mishabutuzov , unfortunately, this is a limitation of Fluent v8. If you upgrade to Fluhttps://react.fluentui.dev/?path=/docs/concepts-developer-styling-components--pageent UI v9, hooks are the preferred way of styling