compacto-ui

Search documentation

Jump to a page or a component.

DropdownMenu

Row actions, with a tinted (not solid) destructive variant.

Preview

Installation

No install — ask an AI agent to copy this component from registry.json.

import { DropdownMenu, DropdownMenuCheckboxItem, DropdownMenuContent, DropdownMenuItem, DropdownMenuTrigger } from "@/components/ui/dropdown-menu";

Notes

  • align defaults to "end", since a menu button usually sits at the right edge of its row.
  • DropdownMenuCheckboxItem deliberately stays open after a toggle — the whole reason to use one is to pick several things in one pass.
  • variant="destructive" tints the row rather than filling it.

Props

The props worth knowing. Everything else passes straight through to the underlying element, including className, which is merged last so it always wins.

PropTypeDefaultDescription
variant (Item)"default" | "destructive""default"Tints the row for delete-style actions.
align (Content)"start" | "center" | "end""end"Alignment against the trigger.