Description
react-burger-menu is a React component for an off-canvas sidebar menu, the panel that slides in from the edge of the screen when you press a hamburger button. It comes with a collection of effects and styles, and it animates with CSS transitions and SVG path animations, so the burger icon animates when the menu opens. You choose the position and style of the menu and the burger button through CSS classes, and the README includes examples of setting the color and shape of the icon bars and their hover state. The README includes an Escape key handler to close the menu, and you can control whether a click on the overlay closes it. The README shows how to render the menu open or closed from your own state, and how to connect it to application state through a selector, for example to close all menus at once. A separate Redux version offers easier integration in Redux projects. The repository includes a live demo with examples and a test suite. Installation is through npm, and the README covers usage for React applications that need a responsive navigation drawer.…
Highlights
- Off-canvas sidebar with several effects
- CSS transitions and SVG path animations
- Escape key closes the menu
- Styled through CSS classes
Ratings & Reviews
No ratings yet
Be the first to rate react-burger-menu.
People also visit
react-burger-menu FAQ
What is react-burger-menu?
It is a React component for an off-canvas sidebar menu with a hamburger button, animated with CSS transitions and SVG.
How is it styled?
Through CSS classes. The README shows how to set the position, size and color of the burger button and its bars.
Can I control it from my state?
Yes. The README shows rendering the menu open or closed and connecting it to application state.
Is there a Redux version?
Yes. A separate redux-burger-menu package makes integration into Redux projects easier.
How do I install it?
Install react-burger-menu from npm and render the menu in your React app. The repository has a live demo with examples.
What are the best react-burger-menu alternatives?
Popular alternatives to react-burger-menu include react-hamburger-menu, hamburger-react and react-pro-sidebar. See all react-burger-menu alternatives















