Skip to content

ContextMenu ​

Menu on right click

Right-click commands for an area — a file in a list, a canvas. Everything in it must also be reachable another way (a toolbar, a ⋯ button): touch screens and many keyboard users never open a context menu.

Basic
right-click, or focus and press Shift+F10
  • It opens where you right-click, or at the focused element when opened with the Menu key or Shift+F10.
  • The menu itself is a DropdownMenu: arrows, typeahead, checkbox and radio items, submenus.

Usage ​

ts
import { BlessContextMenu } from "blessing-ui";

API ​

Props

NameTypeDefaultDescription
items*BlessMenuItem[]—
checkedRecord<string, boolean>—
radiosRecord<string, string>—

Events

NamePayloadDescription
select[item: BlessMenuItem]

Slots

NameScopeDescription
default—

Released under the MIT License. Character names and artwork belong to their owners.