shadcn.io is an independent project built on shadcn/ui
Edit opens two labeled groups. Actions lists Cut, Copy and Paste. A separator, then History lists Undo and Redo. The labels are not commands.
Group commands under labels when a menu mixes two jobs, such as editing and history. A Dropdown Menu can use the same groups off one button. In React, Base UI does not run Undo or Redo.
Installation
Sign in to get your install command
Free with an account. It carries your token, so the CLI installs everything in one go.
Anatomy

Usage
<Menubar>
<MenubarMenu>
<MenubarTrigger>Edit</MenubarTrigger>
<MenubarContent>
<MenubarGroup>
<MenubarLabel>Actions</MenubarLabel>
<MenubarItem>Cut</MenubarItem>
<MenubarItem>Copy</MenubarItem>
<MenubarItem>Paste</MenubarItem>
</MenubarGroup>
<MenubarSeparator />
<MenubarGroup>
<MenubarLabel>History</MenubarLabel>
<MenubarItem>Undo</MenubarItem>
<MenubarItem>Redo</MenubarItem>
</MenubarGroup>
</MenubarContent>
</MenubarMenu>
</Menubar>FAQ
How are Actions and History split?
Each section is a MenubarGroup that starts with its MenubarLabel, with a MenubarSeparator between the two groups.
Is the section label a command?
No. A MenubarLabel names its group; nothing happens when you click it.
What does the separator separate?
The Actions group from the History group: Paste above the line, the History label below it.
API Reference
Menubar
No extra props in this demo. The rest is on the Menubar page.





