overlay/@mihcm/ui·v0.21.0·stable
ContextMenu
Right-click context menu powered by Radix. Sub-menus, checkboxes, radio items, keyboard shortcuts.
Live preview
Adjust the controls on the right; the preview and code update in real time.
Right-click here
example.tsxtsx
import { ContextMenu, ContextMenuTrigger, ContextMenuContent, ContextMenuItem } from '@mihcm/ui/ContextMenu';
export function Example() {
return (
<ContextMenu
variant="default"
></ContextMenu>
);
}Install
Both paths are valid. CLI ships the source into your repo (you own it). Install pins via npm.
npx @mihcm/cli add ContextMenuCopies the source into
components/ds/ContextMenu.tsx. You own the file. Use --out to override the directory or --force to overwrite.