DropdownMenuWithDestructive() — ui Function Reference
Architecture documentation for the DropdownMenuWithDestructive() function in dropdown-menu-example.tsx from the ui codebase.
Entity Profile
Dependency Diagram
graph TD 468c25e8_14ac_e4c0_e92b_b2d18d55eb14["DropdownMenuWithDestructive()"] 27bfb7fb_c5ea_fc51_35b4_305b0a010c9a["dropdown-menu-example.tsx"] 468c25e8_14ac_e4c0_e92b_b2d18d55eb14 -->|defined in| 27bfb7fb_c5ea_fc51_35b4_305b0a010c9a style 468c25e8_14ac_e4c0_e92b_b2d18d55eb14 fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
apps/v4/registry/bases/radix/examples/dropdown-menu-example.tsx lines 474–533
function DropdownMenuWithDestructive() {
return (
<Example title="With Destructive Items">
<DropdownMenu>
<DropdownMenuTrigger asChild>
<Button variant="outline" className="w-fit">
Actions
</Button>
</DropdownMenuTrigger>
<DropdownMenuContent>
<DropdownMenuGroup>
<DropdownMenuItem>
<IconPlaceholder
lucide="PencilIcon"
tabler="IconPencil"
hugeicons="EditIcon"
phosphor="PencilIcon"
remixicon="RiPencilLine"
/>
Edit
</DropdownMenuItem>
<DropdownMenuItem>
<IconPlaceholder
lucide="ShareIcon"
tabler="IconShare"
hugeicons="ShareIcon"
phosphor="ShareIcon"
remixicon="RiShareLine"
/>
Share
</DropdownMenuItem>
</DropdownMenuGroup>
<DropdownMenuSeparator />
<DropdownMenuGroup>
<DropdownMenuItem>
<IconPlaceholder
lucide="ArchiveIcon"
tabler="IconArchive"
hugeicons="Archive02Icon"
phosphor="ArchiveIcon"
remixicon="RiArchiveLine"
/>
Archive
</DropdownMenuItem>
<DropdownMenuItem variant="destructive">
<IconPlaceholder
lucide="TrashIcon"
tabler="IconTrash"
hugeicons="DeleteIcon"
phosphor="TrashIcon"
remixicon="RiDeleteBinLine"
/>
Delete
</DropdownMenuItem>
</DropdownMenuGroup>
</DropdownMenuContent>
</DropdownMenu>
</Example>
)
}
Domain
Subdomains
Source
Frequently Asked Questions
What does DropdownMenuWithDestructive() do?
DropdownMenuWithDestructive() is a function in the ui codebase, defined in apps/v4/registry/bases/radix/examples/dropdown-menu-example.tsx.
Where is DropdownMenuWithDestructive() defined?
DropdownMenuWithDestructive() is defined in apps/v4/registry/bases/radix/examples/dropdown-menu-example.tsx at line 474.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free