Docs
Menubar
Menubar
A visually persistent menu common in desktop applications that provides quick access to a consistent set of commands.
Usage
import shadcn.ui.components.Menubar
import shadcn.ui.components.MenubarContent
import shadcn.ui.components.MenubarItem
import shadcn.ui.components.MenubarMenu
import shadcn.ui.components.MenubarSeparator
import shadcn.ui.components.MenubarShortcut
import shadcn.ui.components.MenubarTrigger
Menubar {
MenubarMenu {
MenubarTrigger { +"File" }
MenubarContent {
MenubarItem {
+ "New Tab "
MenubarShortcut { +"⌘T" }
}
MenubarItem { + "New Window" }
MenubarSeparator {}
MenubarItem { + "Share" }
MenubarSeparator {}
MenubarItem { + "Print" }
}
}
}