MenubarWithShortcuts() — ui Function Reference
Architecture documentation for the MenubarWithShortcuts() function in menubar-example.tsx from the ui codebase.
Entity Profile
Dependency Diagram
graph TD 00286d3f_1cfd_a1ed_1bd2_a8e82d9e600f["MenubarWithShortcuts()"] 2f385f3b_182c_b423_46e9_5c0eabdf26cc["menubar-example.tsx"] 00286d3f_1cfd_a1ed_1bd2_a8e82d9e600f -->|defined in| 2f385f3b_182c_b423_46e9_5c0eabdf26cc style 00286d3f_1cfd_a1ed_1bd2_a8e82d9e600f fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
apps/v4/registry/bases/base/examples/menubar-example.tsx lines 331–373
function MenubarWithShortcuts() {
return (
<Example title="With Shortcuts">
<Menubar>
<MenubarMenu>
<MenubarTrigger>File</MenubarTrigger>
<MenubarContent>
<MenubarItem>
New Tab <MenubarShortcut>⌘T</MenubarShortcut>
</MenubarItem>
<MenubarItem>
New Window <MenubarShortcut>⌘N</MenubarShortcut>
</MenubarItem>
<MenubarItem>
Print... <MenubarShortcut>⌘P</MenubarShortcut>
</MenubarItem>
</MenubarContent>
</MenubarMenu>
<MenubarMenu>
<MenubarTrigger>Edit</MenubarTrigger>
<MenubarContent>
<MenubarItem>
Undo <MenubarShortcut>⌘Z</MenubarShortcut>
</MenubarItem>
<MenubarItem>
Redo <MenubarShortcut>⇧⌘Z</MenubarShortcut>
</MenubarItem>
<MenubarSeparator />
<MenubarItem>
Cut <MenubarShortcut>⌘X</MenubarShortcut>
</MenubarItem>
<MenubarItem>
Copy <MenubarShortcut>⌘C</MenubarShortcut>
</MenubarItem>
<MenubarItem>
Paste <MenubarShortcut>⌘V</MenubarShortcut>
</MenubarItem>
</MenubarContent>
</MenubarMenu>
</Menubar>
</Example>
)
}
Domain
Subdomains
Source
Frequently Asked Questions
What does MenubarWithShortcuts() do?
MenubarWithShortcuts() is a function in the ui codebase, defined in apps/v4/registry/bases/base/examples/menubar-example.tsx.
Where is MenubarWithShortcuts() defined?
MenubarWithShortcuts() is defined in apps/v4/registry/bases/base/examples/menubar-example.tsx at line 331.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free