Context Menu
Displays a menu of actions triggered by a right click.
Installation
$npx maddex add ContextMenu
Basic
Start with an uncontrolled context menu for quick actions on a single surface.
Preview
Controlled Submenu
Use the controlled open state when surrounding UI needs to react while the menu is visible.
Preview
Menu State
{sharingMenuOpen ? "Open" : "Closed"}
{sharingMenuOpen ? "The open prop is synced, so sibling UI can react while the menu is visible." : "Right-click the brief card to open the menu and update this status panel through on-open-change."}
Checkboxes And Radio Items
Combine checkbox items for persistent toggles with radio items for one-of-many layout choices.
Preview