--- order: 10 title: zh-CN: 右键菜单 en-US: Context Menu --- ## zh-CN 默认是移入触发菜单,可以点击鼠标右键触发。 ## en-US The default trigger mode is `hover`, you can change it to `contextMenu`. ```tsx import type { MenuProps } from 'antd'; import { Dropdown } from 'antd'; import React from 'react'; const items: MenuProps['items'] = [ { label: '1st menu item', key: '1', }, { label: '2nd menu item', key: '2', }, { label: '3rd menu item', key: '3', }, ]; const App: React.FC = () => (
Right Click on here
); export default App; ``` ```css .site-dropdown-context-menu { color: #777; background: #f7f7f7; } ```