ContextMenuWithIcons() — ui Function Reference
Architecture documentation for the ContextMenuWithIcons() function in context-menu-example.tsx from the ui codebase.
Entity Profile
Dependency Diagram
graph TD b8250d62_b69c_e981_dc67_bdacdf8997be["ContextMenuWithIcons()"] 9e5e8d31_2c76_f044_a26d_6f6e085689ee["context-menu-example.tsx"] b8250d62_b69c_e981_dc67_bdacdf8997be -->|defined in| 9e5e8d31_2c76_f044_a26d_6f6e085689ee style b8250d62_b69c_e981_dc67_bdacdf8997be fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
apps/v4/registry/bases/radix/examples/context-menu-example.tsx lines 73–130
function ContextMenuWithIcons() {
return (
<Example title="With Icons">
<ContextMenu>
<ContextMenuTrigger className="flex aspect-[2/0.5] w-full items-center justify-center rounded-lg border text-sm">
Right click here
</ContextMenuTrigger>
<ContextMenuContent>
<ContextMenuGroup>
<ContextMenuItem>
<IconPlaceholder
lucide="CopyIcon"
tabler="IconCopy"
hugeicons="CopyIcon"
phosphor="CopyIcon"
remixicon="RiFileCopyLine"
/>
Copy
</ContextMenuItem>
<ContextMenuItem>
<IconPlaceholder
lucide="ScissorsIcon"
tabler="IconCut"
hugeicons="ScissorIcon"
phosphor="ScissorsIcon"
remixicon="RiScissorsLine"
/>
Cut
</ContextMenuItem>
<ContextMenuItem>
<IconPlaceholder
lucide="ClipboardPasteIcon"
tabler="IconClipboard"
hugeicons="ClipboardIcon"
phosphor="ClipboardIcon"
remixicon="RiClipboardLine"
/>
Paste
</ContextMenuItem>
</ContextMenuGroup>
<ContextMenuSeparator />
<ContextMenuGroup>
<ContextMenuItem variant="destructive">
<IconPlaceholder
lucide="TrashIcon"
tabler="IconTrash"
hugeicons="DeleteIcon"
phosphor="TrashIcon"
remixicon="RiDeleteBinLine"
/>
Delete
</ContextMenuItem>
</ContextMenuGroup>
</ContextMenuContent>
</ContextMenu>
</Example>
)
}
Domain
Subdomains
Source
Frequently Asked Questions
What does ContextMenuWithIcons() do?
ContextMenuWithIcons() is a function in the ui codebase, defined in apps/v4/registry/bases/radix/examples/context-menu-example.tsx.
Where is ContextMenuWithIcons() defined?
ContextMenuWithIcons() is defined in apps/v4/registry/bases/radix/examples/context-menu-example.tsx at line 73.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free