negomi / react-burger-menu

:hamburger: An off-canvas sidebar component with a collection of effects and styles using CSS transitions and SVG path animations
http://negomi.github.io/react-burger-menu/
MIT License
5.05k stars 586 forks source link

how to create multi level menu #321

Closed vasan19 closed 5 years ago

vasan19 commented 5 years ago

Hi i try to create multilevel menu i cant find any doc how to create multilevel menu. help me with sample code.

negomi commented 5 years ago

Do you have an example of what you mean by multilevel menu?

vasan19 commented 5 years ago

i am looking menu like this Negomi multilevelmenu

negomi commented 5 years ago

react-burger menu is really just a sidebar container, so you can put anything you want in it.

You could definitely build a custom multilevel menu like that to go inside it, but you would have to Google for examples to learn from, because sample code for that is beyond the scope of this component's documentation.

If you were looking for a package that supports multilevel nested menus out of the box, it looks like there are a few others that support it, e.g. https://www.npmjs.com/package/react-sidenav

Or this one, which you might be able to use inside react-burger-menu: https://github.com/gholme4/react-nested-menu

Good luck!