Change the type of the 'header' property on TabPanel #1079
Labels
Type: Enhancement
Issue contains an enhancement related to a specific component. Additional functionality has been add
Milestone
Current behavior
Although it works we get a console error when instead of a string we use a component on the header.
Can you change the propTypes ?
Just the leftIcon / rightIcon and a string for header is not flexible enough. Having the ability to send a custom header is very important for us.
If we use the
<TabMenu />
and not the<TabView><TabPanel /></TabView>
then we don't have the error but we lose functionality.React version:
16.11.0
PrimeReact version:
3.3.2
The text was updated successfully, but these errors were encountered: