Open bpc1985 opened 1 year ago
@bpc1985 What is your purpose for having a Divider element there? The Material UI Tabs component is meant to have only Material UI Tab children inside.
Since the issue is missing key information and has been inactive for 7 days, it has been automatically closed. If you wish to see the issue reopened, please provide the missing information.
@bpc1985 What is your purpose for having a Divider element there? The Material UI Tabs component is meant to have only Material UI Tab children inside.
Sorry, I dont see it for a long time
Using <Divider /> in <Tabs>
to add some line divider between some tab
Alright, I believe it's a good idea to support it. The warnings occur because the props are passed to the DOM due to Tabs using React.cloneElement internally. This can be resolved by either using the React Context API or transitioning to the Base UI Tabs hook.
Duplicates
Latest version
Steps to reproduce 🕹
Link to reproduce: https://codesandbox.io/s/ecstatic-fast-rhkzvn?file=/Demo.tsx
Current behavior 😯
When trying to add Divider to Tab component
For example:
it causes a lot of warnings in devtools
Expected behavior 🤔
It should not show any warnings
Context 🔦
No response
Your environment 🌎
``` Don't forget to mention which browser you used. Output from `npx @mui/envinfo` goes here. ```npx @mui/envinfo