shadcn.io is an independent project built on shadcn/ui
File opens three rows. New File has a file icon, Open has a folder icon and Save has a save icon, each before the words.
Add icons when the commands are ones people already know from desktop apps. A Command menu is easier once the list is long enough to search. Ark UI in Vue does not pick the icons.
Installation
Anatomy

Usage
<Menubar>
<MenubarMenu>
<MenubarTrigger>File</MenubarTrigger>
<MenubarContent>
<MenubarItem value="new-file">
<FileIcon aria-hidden="true" />New File
</MenubarItem>
<MenubarItem value="open"><FolderIcon aria-hidden="true" />Open</MenubarItem>
<MenubarItem value="save"><SaveIcon aria-hidden="true" />Save</MenubarItem>
</MenubarContent>
</MenubarMenu>
</Menubar>FAQ
Where does each icon go?
First inside each MenubarItem, before the label. The item lays them out with a gap.
What size are these icons?
The item sizes them; the demo sets no size class. Add one, such as size-4, only to change it.
Which menu is this?
A single MenubarMenu whose MenubarTrigger reads File, with New File, Open and Save in its MenubarContent.
How do I add a hint beside Save?
Add a MenubarShortcut after the label, such as ⌘S. It lines up at the end of the row and only prints the hint.
API Reference
Menubar
Sets value="new-file", value="open" and value="save". The rest is on the Menubar page.



