Dropdown Menu
View in FigmaA contextual menu triggered by a button, displaying a list of actions or options.
ActionsImport
import { DropdownMenu, DropdownMenuTrigger, DropdownMenuContent, DropdownMenuItem, DropdownMenuSeparator, DropdownMenuLabel } from "@/components/ui"API
| Prop | Type | Default | Description |
|---|---|---|---|
| align | "start" | "center" | "end" | "start" | Horizontal alignment of the dropdown content. |
| destructive | boolean | — | Styles a menu item as a destructive action. |
| onSelect | () => void | — | Callback when a menu item is selected. |
| icon | ReactNode | — | Optional icon for a menu item. |