An open API service indexing awesome lists of open source software.

https://github.com/siamahnaf/context-menu

React hook and components for displaying fully UI controlled context menu.
https://github.com/siamahnaf/context-menu

contect-menu react-context-menu

Last synced: 4 months ago
JSON representation

React hook and components for displaying fully UI controlled context menu.

Awesome Lists containing this project

README

          




Siam Ahnaf



# @siamf/context-menu
React hook and components for displaying fully UI controlled context menu.

This project is fork of [use-context-menu](https://github.com/bvaughn/use-context-menu) with react 19 support.

# Installation

```bash
$ npm i @siamf/context-menu
```

# Usage

### `ImageUpload`

```javascript
"use client"
import { ContextMenuItem, useContextMenu } from "@siamf/context-menu";
import "@siamf/context-menu/styles.css";

const Page = ({ className }: { className: string }) => {
const { contextMenu, onContextMenu, onKeyDown } = useContextMenu(
<>
One
Two
Three
>
);

return (
<>

right-click me

{contextMenu}
>
);
}

export default Page;
```

# Stay in touch

- Author - [Siam Ahnaf](https://www.siamahnaf.com/)
- Website - [https://www.siamahnaf.com/](https://www.siamahnaf.com/)
- LinkedIn - [https://www.linkedin.com/in/siamahnaf/](https://www.linkedin.com/in/siamahnaf/)
- Github - [https://github.com/siamahnaf](https://github.com/siamahnaf)