Measured entry
hextaui-context-menu
A client-side React context menu shipped as a shadcn registry TypeScript file. It wraps Radix Context Menu with styled triggers, nested menus, checkbox and radio items, labels, separators, shortcuts, and a destructive variant. It relies on Tailwind theme classes, Lucide icons, and a local cn utility.



Measured
Every value below was written by the harness on the run that produced the frames above. None of it is derived from the prose.
| Build | OK |
|---|---|
| Mount | OK |
| Console errors | 0 |
| Uncaught page errors | 0 |
| Horizontal overflow | flagged at 375 |
| Axe critical | 0 |
| Axe serious | 0 |
| Axe moderate | 0 |
| Axe minor | 0 |
| Gzip marginal | 62.2 KB (127.7 KB build, 65.5 KB baseline) |
| Bare mode | FAIL |
| Provider required | NO |
| Demo used | written from the component source API |
What the harness recorded
BARE BUILD
✗ Build failed in 920ms error during build: [vite]: Rollup failed to resolve import "lucide-react" from "<sandbox>re-dc77505d5908/src/cut/components/ui/context-menu.tsx".
Verdict
A credible, complete Radix wrapper for desktop-style contextual actions, with clean mounting and no detected accessibility violations. The menu is ready to adopt in a compatible Tailwind stack, but the supplied demo trigger should be made responsive before reuse in narrow layouts.
Use it if
- You need a right-click menu with keyboard navigation and managed focus.
- Your menu needs nested actions, selectable items, shortcuts, or destructive states.
- Your React app already uses Tailwind theme tokens and Radix primitives.
Skip it if
- Your primary actions must stay visible and obvious on touch-first interfaces.
- Your project does not use Tailwind and you do not want to translate the component styling.
- You want a native browser menu or a dependency-free custom menu.
- You plan to copy the fixed-width demo trigger unchanged into narrow layouts.
Install
| Declared dependencies | @radix-ui/react-context-menu, clsx, tailwind-merge |
|---|---|
| Missing on install | none |
| Bare install | fails once the shadcn-style helpers are removed, so it needs that setup |
| Provider | no provider required in the harness |
In a non-shadcn project, add Radix Context Menu and Lucide React, provide the cn helper with clsx and tailwind-merge, and map the Tailwind color, border, shadow, and animation classes to your theme. Keep the file as a client component.
Source and credit
This page is a review, not a copy. The component source lives with its author and this site does not republish it. Read the license before you use anything.
Author repository
github.com/preetsuthar17/HextaUIAlternatives
Other published entries for the dropdown pattern, ordered by what they measured: mounts first, then clean axe scans, then bare-mode passes, then the smaller bundle.
- tripled-context-menu-shadcnuiminimal-flat
- Renders
- YES
- A11y
- 0
- Gzip
- 61.1KB
- Bare
- pass
- Prov
- NO
- shadcn-dropdown-menuunclassified
- Renders
- YES
- A11y
- 0
- Gzip
- 44.4KB
- Bare
- fail
- Prov
- NO
- originui-comp-131minimal-flat
- Renders
- YES
- A11y
- 0
- Gzip
- 58.1KB
- Bare
- fail
- Prov
- NO
- neobrutalism-dropdown-menubrutalism
- Renders
- YES
- A11y
- 0
- Gzip
- 58.5KB
- Bare
- fail
- Prov
- NO
- shadcn-context-menuunclassified
- Renders
- YES
- A11y
- 0
- Gzip
- 58.7KB
- Bare
- fail
- Prov
- NO
- neobrutalism-context-menubrutalism
- Renders
- YES
- A11y
- 0
- Gzip
- 58.8KB
- Bare
- fail
- Prov
- NO