I keep seeing references to a component called "LeftNav
" in the material-ui react library (example: Material UI - Open LeftNav / Drawer on AppBar click), but I can't find anything about it in the documentation. What is it? How does it differ from Drawer
? Why is it apparently undocumented, despite being hugely popular (at least judging by the number of questions I see about how to use it)? What is its toggle()
method for, and is there a similar method for Drawer
(the documentation suggests not, but for all I would know by reading the documentation there was no such component as LeftNav
at all, so I don't think the documentation can really be trusted here)?
<LeftNav/>
is the same as <Drawer/>
. The name was changed from "LeftNav" to "Drawer" with the release of material-UI version 0.15. Take a look at the change log here and you will see this.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With