unstale

npm / @radix-ui/react-context-menu

@radix-ui/react-context-menu

What changed in @radix-ui/react-context-menu 2, from its official release notes, upgrade guides and advisories. Sources checked 2026-10-21.

4 new APIs and options1 performance1 tooling8 fixes and other

See which of these apply to your code, ranked, in your agent:

npx @unstale/cli init

@unstale/cli 0.2.1 on npm

@radix-ui/react-context-menu 214 changes

New APIs and options 4

  • The align prop can now be overridden on ContextMenu.Content.

    2.4.0release notes

  • The side prop can now be overridden on ContextMenu.Content.

    2.4.0release notes

  • The sideOffset prop can now be overridden on ContextMenu.Content.

    2.4.0release notes

  • ContextMenu.Root now supports a controlled open prop for reading the open state and closing the menu programmatically; programmatic opening is discouraged because positioning depends on user interaction.

    2.3.0release notes

Performance 1

  • Unused components can now be dropped by bundlers; component parts use pure annotations and named render functions to enable dead-code elimination.

    2.3.4release notes

Tooling 1

  • The package is republished through CI with a provenance attestation, which may inform package verification decisions.

    2.3.5release notes

Fixes and other changes 8

  • Fixed a type regression so callback props accept handlers whose parameter is narrower than the prop's.

    2.4.1release notes

  • Optional types now allow explicit undefined for compatibility with TypeScript's exactOptionalPropertyTypes flag.

    2.4.0release notes

  • Reverted breaking changes that caused compatibility issues with React Server Components.

    2.3.7release notes

  • Conditional exports now let production builds drop development-only warnings.

    2.3.4release notes

  • Re-triggering an already-open ContextMenu now re-anchors it to the latest pointer position.

    2.3.3release notes

  • Menu items, tab triggers, toolbar links, and select items no longer intercept Space or Enter when those keys originate from focusable descendants.

    2.3.3release notes

  • Fixed menus and submenus remaining open after a window loses focus.

    2.3.1release notes

  • Fixed submenus staying expanded after reopening the context menu on long-press touch events.

    2.3.0release notes