Skip to main content

Burger menu

Note: This component is to be used only under the scope of the Header UX patterns and not to be used in isolation or custom scenarios.

For documentation about the burger menu component for page layout UX patterns, see this page.

Examples

Check out the Usage section for details about how to design a burger menu properly, and the different configuration options we provide.

Basic burger menu

A basic burger menu is a button inside a header that can be used to open a menu. The menu is defined by the burgerContent property which can contain an array of nodes. There are specific components for burger items like BurgerMenuItem and BurgerMenuLink that can be used in the burgerContent array.

Basic example demonstration on storybook.

<Header>
<BurgerMenu
burgerContent={[
<BurgerMenuItem key="item" id="item" isContainerOnly>Menu Item</BurgerMenuItem>,
<BurgerMenuLink key="link" id="link">Menu Link</BurgerMenuLink>,
]}
/>
</Header>