Pass active attribute to tab children
complete
Matthew Runyon
I have implemented this for my project already and figured it may be useful to the community
I have some Tabs which have React components as the content. The React components need to know when they are active in order to update the canvas size they are using and make a call to draw the canvas
Any reason to not add the active prop/attribute to Tab children?
Joshua Chen
complete
Should be fixed by https://github.com/facebook/docusaurus/pull/10091
G
Guille
Sébastien Lorber I noticed that if we simply swap the place of
...tabs
and ...props
here it would allow us to pass the selectedValue
as a prop to <Tabs>
, and thus control it thought an outter state