Socket
Book a DemoInstallSign in
Socket

@right-menu/react

Package Overview
Dependencies
Maintainers
2
Versions
5
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@right-menu/react

## 官网

latest
npmnpm
Version
0.0.5
Version published
Maintainers
2
Created
Source

一个基于react的右键菜单插件

官网

  • 官方文档 - 首页

通过 import 使用

安装

npm i @right-menu/react

使用

import RightMenu from '@right-menu/react'

render () {
  return <RightMenu options={[{
    type: 'li',
    text: 'Hello RightMenu',
  }]}>
    <div style="height: 300px; background: #ccc">测试右键菜单</div>
  </RightMenu>
}
import { useRightMenu } from '@right-menu/react'

function App(){
  const menuRef = useRightMenu([
    {
      type: 'li',
      text: 'Hello RightMenu'
    }
  ])
  return <div ref={menuRef}>测试右键菜单</div>
}

FAQs

Package last updated on 03 Dec 2021

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts