Custom elements in MenuItem


Hey guys,
I’m working on a simple menu bar utility in Electron and ran into a need for adding custom elements to menu items.

I’m talking about some elements that could be added to the right side of each MenuItem, similarly as it’s done in macOS Wi-Fi menu.

The problem is I only found icon covered in docs and that adds icon to the left.

Is this even possible in Electron? Thanks.


That’s not possible with the built-in menu API, if you want a custom menu you’ll have to build it yourself with HTML/CSS/JS and display it in a separate BrowserWindow.


Why the heck separate browser window?