Description
Library
React Components / v9 (@fluentui/react-components)
Bug Description
Actual Behavior
Currently the slot API types are not compatible with react v18 types provided by @types/react
, many components are breaking due to incompatibility with types that weren't detect previously.
For example, the ImageSlot
types does not satisfies SlotPropsRecord
which is a requirement for ImageProps
:

In this case the main reason is the assumption of the requirement of a children
attribute which is well defined as React.ReactNode
, meanwhile ImageProps
actually required children to be never
Expected Behavior
No errors on v18 for the slot API.