"use client" import * as React from "react" import { Example, ExampleWrapper, } from "@/registry/bases/base/components/example" import { Button } from "@/registry/bases/base/ui/button" import { Dialog, DialogContent, DialogDescription, DialogHeader, DialogTitle, DialogTrigger, } from "@/registry/bases/base/ui/dialog" import { Menubar, MenubarCheckboxItem, MenubarContent, MenubarGroup, MenubarItem, MenubarLabel, MenubarMenu, MenubarRadioGroup, MenubarRadioItem, MenubarSeparator, MenubarShortcut, MenubarSub, MenubarSubContent, MenubarSubTrigger, MenubarTrigger, } from "@/registry/bases/base/ui/menubar" import { IconPlaceholder } from "@/app/(create)/components/icon-placeholder" export default function MenubarExample() { return ( ) } function MenubarBasic() { return ( File New Tab ⌘T New Window ⌘N New Incognito Window Print... ⌘P Edit Undo ⌘Z Redo ⇧⌘Z Cut Copy Paste ) } function MenubarSides() { return ( {( [ "inline-start", "left", "top", "bottom", "right", "inline-end", ] as const ).map((side) => ( {side.replace("-", " ")} New Tab New Window New Incognito Window ))} ) } function MenubarWithSubmenu() { return ( File Share Email link Messages Notes Print... ⌘P Edit Undo ⌘Z Redo ⇧⌘Z Find Find... Find Next Find Previous Cut Copy Paste ) } function MenubarWithCheckboxes() { return ( View Always Show Bookmarks Bar Always Show Full URLs Reload ⌘R Force Reload ⇧⌘R Format Strikethrough Code Superscript ) } function MenubarWithRadio() { const [user, setUser] = React.useState("benoit") const [theme, setTheme] = React.useState("system") return ( Profiles Andy Benoit Luis Edit... Add Profile... Theme Light Dark System ) } function MenubarWithIcons() { return ( File New File ⌘N Open Folder Save ⌘S More Settings Help Delete ) } function MenubarWithShortcuts() { return ( File New Tab ⌘T New Window ⌘N Print... ⌘P Edit Undo ⌘Z Redo ⇧⌘Z Cut ⌘X Copy ⌘C Paste ⌘V ) } function MenubarFormat() { return ( Format Bold ⌘B Italic ⌘I Underline ⌘U Strikethrough Code View Show Ruler Show Grid Zoom In Zoom Out ) } function MenubarInsert() { return ( Insert Media Image Video Audio Link ⌘K Table Tools Find & Replace ⌘F Spell Check ) } function MenubarDestructive() { return ( File New File ⌘N Open Folder Delete File ⌘⌫ Account Profile Settings Sign out Delete ) } function MenubarInDialog() { return ( }> Open Dialog Menubar Example Use the menubar below to see the menu options. File Copy Cut Paste More Options Save Page... Create Shortcut... Name Window... Developer Tools Delete Edit Undo ⌘Z Redo ⇧⌘Z ) } function MenubarWithInset() { const [showBookmarks, setShowBookmarks] = React.useState(true) const [showUrls, setShowUrls] = React.useState(false) const [theme, setTheme] = React.useState("system") return ( View Actions Copy Cut Paste Appearance Bookmarks Full URLs Theme Light Dark System More Options Save Page... Create Shortcut... ) }