Skip to main content
  1. Docs
  2. Components
  3. Overlays

Context menu

A menu at the pointer: right-click, a long press, or Shift+F10. Menu's items, on any area.

Import
@qeetrix/react
Status
StableSince 0.1.0
Renders
<div role="menu">Server-rendered
Tested
WCAG 2.2 AAaxe on every pull request

01

Keyboard

KeysWhat happens
ShiftShift F10With focus in the area: opens it at the focused element.
MenuThe context-menu key: the same.
↑↓EnterEscapeAs Menu's.

02

Behaviour

Roles
Menu's: role="menu" of menuitems.
Opening
Right-click or a long press, at the pointer; by key, at the focused element.
Reachable
Only by key if the area takes focus: give it tabIndex={0}, or put it around content that does.

03

Tested

On every change, before it ships.

  • axe, WCAG 2.2 A and AA, in Chromium on every pull request
  • Firefox and WebKit every night
  • Focus: where it lands as it opens, and where it returns as it closes
  • Forced colours, reduced motion and right to left
Next — Context menuChangelog