Command Palette
Search for a command to run...
Loading...
Loading...
Upgrade your UX with a custom right-click menu. Copy the code and start now.
UIAble Context Menu is a cursor-positioned overlay component that activates on right-click and replaces the browser’s native context menu with a fully customizable action panel.
It is implemented using shadcn UI components with Base UI principles to ensure accessible interactions, keyboard-friendly behavior, and consistent UI patterns across complex layouts.
Instead of being distributed as a closed npm package, the component is provided as open source code within your project structure. It allows developers to directly modify the DOM structure, extend submenu logic, or integrate custom actions without fighting library constraints.
The styling layer is handled by Tailwind CSS which helps to overcome complex UI challenges like absolute positioning, nested menu systems, managing hover states and animation flows. The end result is a production-ready, highly flexible context menu system that feels native across all browsers.
If you want your web app to behave like native desktop software (Figma, Google Drive, etc), you need to override the browser’s native right click menu. The math to get exact X/Y pointer coordinates and make sure the menu doesn’t open off-screen is complex. UIAble Context Menu uses Base UI’s positioning engine to do this collision detection perfectly.
Since the code lives completely inside your project, there is absolutely zero dependency lock-in. You have total control over the component architecture, making it trivial to inject custom separators, alter the entry animations, or create complex multi-tiered menus.
It works smoothly with Tailwind CSS. This guarantees that your custom right-click menus automatically maintain a cohesive design system, perfectly matching your standard Dropdown Menus natively.
UIAble Context Menu brings advanced interaction capabilities to your UI without adding visual clutter. It allows you to surface powerful actions exactly where users need them, keeping the primary layout clean and focused.
It fits naturally into complex interfaces such as:
The component is deeply connected to your design system. Any updates made in your Tailwind settings like surface tones, transparency levels or border radius values are instantly reflected in the context menu, maintaining perfect visual harmony.
The component is deeply connected to your design system. Any updates made in your Tailwind settings like surface tones, transparency levels or border radius values are instantly reflected in the context menu, maintaining perfect visual harmony.