[material-ui][Tabs] Implement without cloneElement #28064
Labels
component: tabs
This is the name of the generic UI component, not the React module!
new feature
New feature or request
Milestone
Summary 馃挕
I have a tab set where I'd like one extra tab to only be present on xs screens. I thought I could just wrap the
Tab
andTabPanel
in aHidden
tag; something like:...but that generates errors such as:
Examples 馃寛
I forked the tabs example (from lab) and added the hidden use case
https://codesandbox.io/s/material-demo-forked-wmtjy?file=/demo.js
Is this something that the lab tab components can support? (assuming I'm not doing something silly)
Your Environment 馃寧
`npx @material-ui/envinfo`
The text was updated successfully, but these errors were encountered: