Deprecated: Use useMenubarContext instead.

Returns the menuBar store from the nearest menuBar container.

Code examples

function MenuBar() {
const store = useMenuBarContext();
if (!store) {
throw new Error("MenuBar must be wrapped in MenuBarProvider");
// Use the store...

Follow updates

Join 1,000+ subscribers and receive monthly updates with the latest improvements on API Reference.

Read latest issue

No Spam. Unsubscribe at any time.