DropdownMenu
Actions or value menu from a button, field, or nav trigger.
Actions for one target, opened with a right-click or Shift+F10.
Actions for one target. Right-click or press Shift+F10. Arrow keys move, Enter chooses, Escape closes.
A visible button that opens actions is DropdownMenu, not this.
Right-click this record. Last action: None.
Wrap the target. Disabled items are skipped. A danger item is the destructive one.
import { ContextMenu } from "agentic-ds-kit";From contracts/contextmenu.json: must is the a11y requirements, defaults the prop defaults, stops if the doNot rules where the agent asks instead of inventing a cousin.
| Name | Type | Required | Default | Notes |
|---|---|---|---|---|
| items | array | Yes | — | Each item is { id, label, disabled?, danger?, shortcut? }. |
| onSelect | function | No | — | (id: string) => void |
| children | slot | Yes | — | The surface that opens the menu. |
| ariaLabel | string | No | Actions | — |
Actions or value menu from a button, field, or nav trigger.
Product side nav: brand header, icon items, optional badges, closeable; variant single (one column that closes to an icon rail) or rail-subnav (a fixed icon rail plus a SideNav.SubNav column with the picked parent's rows).
Docs and catalog sidebar only: title, grouped text-only links, optional decorative icons and muted counts on group and subgroup headers only, an active page pill and optional footer links.
Clickable action control with appearance × mode (plus an optional flat set) and a fixed set of sizes.