---
title: "use-context-menu"
description: "A React hook for implementing context menus."
pagination: false
---

{/* Generated from content/. Edit the catalog, not this page. */}

<PurposeNote title="Good for">Showing custom actions when a user opens an element's context menu.</PurposeNote>

## What it does

A React hook for implementing context menus.

## When it fits

Showing custom actions when a user opens an element's context menu.

## Other options in this category

<div data-pagefind-ignore>

- [Floating UI](/overlays/floating-ui) — Building tooltips, popovers, and menus anchored to other elements.
- [React Modal](/overlays/react-modal) — Showing focused content above the page with managed dialog behavior.
- [SweetAlert2 React Content](/overlays/sweetalert2-react-content) — Rendering React content inside alert and confirmation dialogs.
- [Toldo](/overlays/toldo) — Adding a polished modal interaction to an application interface.

</div>

## Source

[Project source for use-context-menu ↗](https://use-context-menu.vercel.app/)

Editorial overview reviewed on October 24, 2026. Follow the source for current setup, compatibility, and licensing.

[Show contextual controls →](/tasks/show-contextual-controls)

[All dialogs, menus &amp; tooltips options →](/overlays)
