Overlays
Context Menu
A menu of actions that opens at the pointer when its children are right clicked.
Group: Overlays. Exports: ContextMenu. shadcn/ui equivalent: Context Menu (partial parity).
Usage
import { ContextMenu } from "./halaska-kit";
ContextMenu props
itemsarray: The entries to render.childrenReactNode: Content.
Accessibility
- Opens on the contextmenu event only, so it follows the platform right click or long press.
- The menu has menu and menuitem roles, and focus moves to the first item when it opens.
- Up and Down arrows, Home and End move between items. Escape, Tab, a click elsewhere or a pick closes it.
- Focus returns to where it was when the menu closes.
Known gaps
- No submenus.
- No checkbox or radio items.
- No labels or groups.
- No disabled items.
Halaska UI · Components · Patterns · Screens · Install