Welcome to the React feedback portal. We’re happy you’re here! If you have feedback on how to improve the React, we’d love to hear it!

  • Check out the features or bugs others have reported and vote on your favorites. Feedback will be prioritized based on popularity.
  • If you have feedback that’s not listed yet, submit your own.

Thanks for joining our community and helping improve Syncfusion products!

1
Vote

i can set jsx element to tab content like below


<TabItemDirective content={() => <div />}></TabItemDirective>

but if i want to dynamic add tab

TabItemModel's content property only has string &HTMLElement type


i need to transfer object type to any to set

jsxElement to
the content like below

{ header: { text: 'tabText'}, content: ((() => jsxElement) as any) } as TabItemModel


is there any better way to do this in typescript?

or the content type should add type JSX.Element?