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

Drop down menu #298

Closed douglasrcjames closed 5 years ago

douglasrcjames commented 5 years ago

I am trying to add a drop down menu to the sidebar when it is popped out. Such as " Login || Register || More > [ About || Contact || F.A.Q ] "

What's the easiest way to do this?

negomi commented 5 years ago

Hi @douglasrcjames, you can pass any component you like as a child of the menu, so any dropdown menu from a library or one that you implement yourself should just work.

douglasrcjames commented 5 years ago

Okay thanks, that's a good call, I'll try that!

mujtaba-1214 commented 5 years ago

any example of drop down in react burger menu

negomi commented 5 years ago

@mujtaba-1214 there are a a few tutorials around (I don't know exactly what you want but maybe something like https://medium.com/@vayamjain/making-a-nested-sidebar-menu-in-react-f8595031995e), so if you can build a regular dropdown, you can just render it as a child of react-burger-menu.