overlay/@mihcm/ui·v0.21.0·stable
ContextMenu
Right-click context menu powered by Radix. Sub-menus, checkboxes, radio items, keyboard shortcuts.
Props
The full prop API for ContextMenu. Same surface in web and React Native — bundlers pick the right variant via the react-native export condition.
| Prop | Type | Default | Description | Since |
|---|---|---|---|---|
variant | 'default' | 'destructive' | 'default' | Visual variant for menu items. | 0.5.0 |
inset | boolean | false | Indent the item to align with checked/radio items. | 0.5.0 |
onSelect | () => void | — | Called when the item is selected. | 0.5.0 |
Import
import { ContextMenu, ContextMenuTrigger, ContextMenuContent, ContextMenuItem } from '@mihcm/ui/ContextMenu';