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.