A professional React context menu with issue reporting, network logging, and error tracking
npm install dpx-react-context-menuA professional React context menu with issue reporting, network logging, and error tracking. Perfect for dashboards and admin panels.
- Custom right-click context menu with smooth animations
- Built-in issue reporting with screenshot capture
- Network request logging and error tracking
- Automatic error detection with smart suggestions
- Fully customizable theming with CSS variables
- TypeScript support
- RTL support
- Responsive design
``bash`
npm install react-context-menu-pro
`tsx
import { ContextMenuProvider, ContextMenuWrapper } from 'react-context-menu-pro';
import 'react-context-menu-pro/dist/styles.css';
function App() {
return (
primaryColor: '#3b82f6',
apiKey: 'your-tracking-api-key',
onLogout: () => handleLogout(),
}}
>
);
}
`
| Option | Type | Description |
|--------|------|-------------|
| primaryColor | string | Primary theme color |primaryColorDark
| | string | Darker shade for hover states |apiKey
| | string | API key for issue tracking |apiUrl
| | string | Custom API URL for issue tracking |onLogout
| | () => void | Logout function |onRefresh
| | () => void | Custom refresh function |isLoggedIn
| | () => boolean | Check if user is authenticated |currentPath
| | string | Current route path |hideLogoutOnPaths
| | string[] | Routes to hide logout button |enabled
| | boolean | Enable/disable context menu |translations
| | object | Custom translations |routeHistory
| | string[]` | Route history for reports |
MIT