How do I create a responsive sidebar component using React's Material UI?

rishi kilaru picture rishi kilaru · May 6, 2017 · Viewed 8.7k times · Source

I am trying to create responsive side bar using react material design but couldn't find a way to do it.

The page content should be responsive when the sidebar opens, and the sidebar should not overlay on the page content.

It should look like https://blackrockdigital.github.io/startbootstrap-simple-sidebar/.

The code so far is:

Answer

Aanchal1103 picture Aanchal1103 · May 7, 2017

Material ui drawer doesn't really support this feature. You can checkout this issue #4752 on material ui repo where someone has implemented this functionality through css. https://github.com/callemall/material-ui/issues/4752