Menubar

Navigation

A visually persistent menu common in desktop applications that provides quick access to a consistent set of commands.

Import

import { Menubar, MenubarContent, MenubarItem, MenubarMenu, MenubarTrigger, ... } from "@/components/ui/menubar";

Usage

Interactive Menubar

A desktop menubar that transforms into a mobile-friendly menu on smaller screens. On mobile, tap the menu button to reveal all options.

API Reference

value
string

The controlled value of the active menu

defaultValue
string

The default value of the active menu

onValueChange
(value: string) => void

Event handler for value change

looptrue
boolean

Whether keyboard navigation should loop from last to first