Improve Tab Props
See original GitHub issueTab
is a nice addition. The problem I’m having is that I want to pass props to my tab panes (render functions). To do this I’m doing <Tab panes={panes} foo="foo" />
, which returns Unknown prop
foo on <div> tag. Remove this prop from the element. For details, see
. Can we have a new prop, like paneProps that we use just for the render props?
Also, can we have <Tab /> take in Tab.Pane children in addition to a panes list prop?
Issue Analytics
- State:
- Created 6 years ago
- Comments:8 (5 by maintainers)
Top Results From Across the Web
The Simplest Way To Create A Reusable Tab Or ... - Medium
A simple tab realization can bring a huge UX improvement, being one of the best ways to avoid unnecessary routes or pages.
Read more >How to Build a Tabs Component with React - DigitalOcean
Tabs are a common UI component and are important to understand how to implement. In this article you will learn how to build...
Read more >How to change tab using props for material ui tabs?
The tabs has a value property , that indicates whether a tab has to be open or not: <Tabs value={value} onChange={handleChange} ...
Read more >How to build a tab component in React - LogRocket Blog
Learn how to build a tab component in React, an essential detail for React apps that provide a clean and organized view for...
Read more >How To Style MUI Tabs and Tab Indicator - YouTube
Do you want to build a full MUI app from beginning to end, learn every aspect of the sx prop, styled API, and...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
You have this warning because unhandled props are passed to the root element of
Tab
, it’s adiv
in this case. Can you clarify your needs? Why you can’t use this approach?I’m pretty sure that the new prop isn’t required.
@EdsonAlcala create the
const panes = []
withinProfile
component. This way, you can pass any of the connected data to the panes.