material-ui
material-ui copied to clipboard
[Tabs] Change Tabs implementation to use context
Currently, Unstyled Tabs implementation relies on React.cloneElement. Changing it to use context would make it more in line with other components. Plus, it will enable scenarios like the ones described in #33663 or #34393.
Hey! I can try to work on this one and create a PR.
I haven't looked extensively into the design of this change yet. Do you have any ideas on how you'd like to proceed with this?
@michaldudak I'm not too familiar with the code so I don't have many ideas. Do have any that might help?