[LeftNav] Make composable
Is there a way to make the LeftNav component composable? I need to add a custom component into the LeftNav. Is there a way to add another MenuItemType or pass in children into the render function on the LeftNav?
++1
Yeah I don't understand why this isn't the default behavior. +1
+1
Would love to see this, I'm trying to apply additional styles to the Menu that is currently wrapped in LeftNav, but there doesn't seem to be a way?
+1 Did you guys figured a work around ?
Also shouldn't the menu items of a leftnav be declared as elements instead of json passed as an attribute?
<LeftNav>
<MenuItem 1/>
<MenuItem 2/>
<MenuItem 3/>
</LeftNav>
+1
+1
I'd go even further than @olivierGM's suggestion:
<LeftNav>
<Menu>
<Menu Item />
...
</Menu>
</LeftNav>
This way I can put whatever content I like in there.
#1319 composable LeftNave
+1
+1
This is now possible with the improved LeftNav.