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...

Stay tuned

Join 1,000+ subscribers and receive monthly tips & updates on new Ariakit content.

No spam. Unsubscribe anytime. Read latest issue