Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Tabs] TabPane needs an additional property for tab displayed in overflow dropdown #27721

Open
1 task done
rinick opened this issue Nov 12, 2020 · 0 comments
Open
1 task done

Comments

@rinick
Copy link
Contributor

rinick commented Nov 12, 2020

  • I have searched the issues of this repository and believe that this is not a duplicate.

What problem does this feature solve?

TabPane.tab is used both to display both the tab button and the tab in dropdown menu when there is overflow.
Same react element rendered in 2 different places sometimes can cause issues

  • when tab has a special style that shouldn't be used in dropdown
  • when tab has mouse event or drag drop handler
  • when any element in tab need to use react ref

What does the proposed API look like?

export interface TabPaneProps {
  menuTab?: React.ReactNode;
}
@rinick rinick changed the title TabPane needs an additional property for tab displayed in overflow dropdown [Tabs] TabPane needs an additional property for tab displayed in overflow dropdown Nov 12, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants