It would be great to allow span root slot type for the Spinner component.
This would help to keep the dom nesting valid for a scenario where a spinner needs to be inside a Paragraph element.
Currently I need to cast the as prop to make this work:
<Spinner as={"span" as unknown as "div"}/>
Have you discussed this feature with our team
No response
Additional context
My use-case is a spinner within a richtext editor.
Users can add certain custom elements to the richtext which are requiring async data load.
While loading the spinner should be displayed.
As this is a richtext editor the root element of each paragraph the user is entering is a p tag.
Validations
[X] Check that there isn't already an issue that requests the same feature to avoid creating a duplicate.
Library
React Components / v9 (@fluentui/react-components)
Describe the feature that you would like added
It would be great to allow
span
root slot type for theSpinner
component. This would help to keep the dom nesting valid for a scenario where a spinner needs to be inside aParagraph
element.Currently I need to cast the
as
prop to make this work:Have you discussed this feature with our team
No response
Additional context
My use-case is a spinner within a richtext editor.
Users can add certain custom elements to the richtext which are requiring async data load.
While loading the spinner should be displayed.
As this is a richtext editor the root element of each paragraph the user is entering is a
p
tag.Validations
Priority
Low