Commands, with checkbox and radio items, groups, separators, and submenus.
Installation
Examples
Default
A menu runs commands, such as a row's actions. For settings that stay open while they change, use a Popover. These menus open over a card, so they take raised, which lifts them a level more.
Shortcuts
shortcut, written as Mod Z, shows a command's keys at the end of its item.
Submenus
A Submenu opens beside its SubmenuTrigger, with its first item level with the trigger.
Checkbox items
A MenuCheckboxItem turns a setting on and off and keeps the menu open. Its check holds a column at the start whether it shows or not, so the items' text lines up.
Radio items
A MenuRadioGroup chooses one of its MenuRadioItems, checked the same way.
Groups
A MenuGroupLabel names the items of a MenuGroup, or of a MenuRadioGroup, and the keyboard skips it.
Disabled items
disabled dims an item that can't run yet; the keyboard still reaches it.
Anatomy
Each part's data-slot, which a theme styles, is beside it.
bun add @roprgm/ui