Home / Function/ DropdownMenuWithDestructive() — ui Function Reference

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
  cb9e5c0a_a1bd_25ec_73d3_efcf8e64d852["DropdownMenuWithDestructive()"]
  1f0e6dcd_ae10_5e0e_4435_9470dee69154["dropdown-menu-example.tsx"]
  cb9e5c0a_a1bd_25ec_73d3_efcf8e64d852 -->|defined in| 1f0e6dcd_ae10_5e0e_4435_9470dee69154
  style cb9e5c0a_a1bd_25ec_73d3_efcf8e64d852 fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

apps/v4/registry/bases/base/examples/dropdown-menu-example.tsx lines 499–554

function DropdownMenuWithDestructive() {
  return (
    <Example title="With Destructive Items">
      <DropdownMenu>
        <DropdownMenuTrigger
          render={<Button variant="outline" className="w-fit" />}
        >
          Actions
        </DropdownMenuTrigger>
        <DropdownMenuContent>
          <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>
          <DropdownMenuSeparator />
          <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>
        </DropdownMenuContent>
      </DropdownMenu>
    </Example>
  )
}

Subdomains

Frequently Asked Questions

What does DropdownMenuWithDestructive() do?
DropdownMenuWithDestructive() is a function in the ui codebase, defined in apps/v4/registry/bases/base/examples/dropdown-menu-example.tsx.
Where is DropdownMenuWithDestructive() defined?
DropdownMenuWithDestructive() is defined in apps/v4/registry/bases/base/examples/dropdown-menu-example.tsx at line 499.

Analyze Your Own Codebase

Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.

Try Supermodel Free