-
Notifications
You must be signed in to change notification settings - Fork 1.4k
Closed
Labels
TYPE: enhancementNew feature or requestNew feature or request
Description
Is your feature request related to a problem?
Currently seems like this is not possible:
// const icon = '<svg ...>'
<Fragment dangerouslySetInnerHTML={icon}></Fragment>
Type '{ dangerouslySetInnerHTML: string; }' is not assignable to type 'IntrinsicAttributes & { children?: any; }'.
Property 'dangerouslySetInnerHTML' does not exist on type 'IntrinsicAttributes & { children?: any; }'.ts(2322)
Describe the solution you'd like
<Fragment>
should accept dangerouslySetInnerHTML like other elements
Describe alternatives you've considered
Using spans everywhere
Additional context
No response
Metadata
Metadata
Assignees
Labels
TYPE: enhancementNew feature or requestNew feature or request