DocsSupportPricing
Roadmap (has updates coming soon)XFigma3.7K
Sign inGet All-Access
  1. Components
  2. Context Menu
  3. Context Menu Basic
MarkdownShare

Shadcn Context Menu Basic

Basic context menu. Built with the Context Menu component. A free, open source shadcn context menu example you can install with npx shadcn@latest add @reui/c-context-menu-1 and edit as your own code.

Basic context menu.

For AI Agents

Hand your agent this brief or the ReUI MCP, not a screenshot. Free to install.

Best for: The bare minimum of 3 plain text rows in a single group, with the middle row disabled

When to use

  • Right click actions on a file, row or canvas area, such as copy, paste, share and delete
  • Toggles and single choice settings changed from a right click, such as visible bars or the theme
  • Long command lists split into headed sections, key hints or a nested flyout of extra tools

When not to use

  • A long list that needs headed sections and a key hint on every row: use the Context Menu Labels & Separators example
  • Actions that must stay discoverable, opened from a visible button like a row's more icon: use the Dropdown Menu component
  • A persistent bar of File, Edit and View lists across the top of an app window: use the Menubar component
  • Site links in a header bar whose panels open on hover or click: use the Navigation Menu component

Agent notes

  • Each dashed ContextMenuTrigger stands in for your target; wrap the row or card in it, or pass it through render on base and asChild on radix
  • ContextMenuLabel throws on the base twin outside a ContextMenuGroup or ContextMenuRadioGroup; the radix one renders anywhere
Markdownhttps://reui.io/components/context-menu/c-context-menu-1.md
MCPget_example("c-context-menu-1")
Installnpx shadcn@latest add @reui/c-context-menu-1
Full index for agents:llms.txtReUI MCP setup

Shadcn Components in Context Menu Basic

  • Context Menu

About Shadcn Context Menu Basic

Basic context menu. Built with the Context Menu component. A free, open source shadcn context menu example you can install with npx shadcn@latest add @reui/c-context-menu-1 and edit as your own code.

What You Can Build With Shadcn Context Menu Basic

  • Composes Context Menu, so it drops into any project already using those components.
  • Install it with the shadcn CLI: npx shadcn@latest add @reui/c-context-menu-1
  • Open source and free, with the full source on this page to copy or adapt.

More Shadcn Context Menu Examples

  • Icons Context menu with icons for common actions.
  • Shortcuts Context menu with keyboard shortcuts.
  • Nested Submenus Context menu with nested submenus.
  • Labels & Separators Context menu labels and separators.
  • Checkbox Items Context menu with checkbox items.
  • Radio Items Context menu with radio items.
  • Destructive Actions Context menu with destructive actions.
  • Alignment Sides Context menu with different alignment sides.
  • Inside Dialog Context menu used inside a dialog component.

Related Shadcn Component Categories

  • Data Grid

    Open-source shadcn data grid components for sorting and filtering, virtualized tables, and admin dashboards.

  • Date Selector

    Open-source shadcn date selector components for date range picking, booking windows, and calendar filters.

  • Dialog

    Open-source shadcn dialog components for modal forms, focused tasks, and confirmations.

  • Drawer

    Open-source shadcn drawer components for mobile panels, slide-over forms, and secondary workflows.

  • Dropdown Menu

    Open-source shadcn dropdown menu components for action menus, profile menus, and toolbar menus.

  • Emoji Picker

    Open-source shadcn emoji picker components for message composers, reactions, page icons, statuses, and custom team emoji.

Frequently Asked Questions

When should I use Shadcn Context Menu Basic?

Use it for the bare minimum of 3 plain text rows in a single group, with the middle row disabled.

Shadcn Context Menu as a whole fits:

  • Right click actions on a file, row or canvas area, such as copy, paste, share and delete
  • Toggles and single choice settings changed from a right click, such as visible bars or the theme
  • Long command lists split into headed sections, key hints or a nested flyout of extra tools

For a long list that needs headed sections and a key hint on every row, use the Context Menu Labels & Separators example. For actions that must stay discoverable, opened from a visible button like a row's more icon, use the Dropdown Menu component. For a persistent bar of File, Edit and View lists across the top of an app window, use the Menubar component. For site links in a header bar whose panels open on hover or click, use the Navigation Menu component.

How do I install Shadcn Context Menu Basic?

Run npx shadcn@latest add @reui/c-context-menu-1. The CLI copies the source into your project, so you own the code and can edit it freely.

Is Shadcn Context Menu Basic free to use?

Yes. Every ReUI component example is open source and free for personal and commercial projects.

Which components does Shadcn Context Menu Basic use?

It composes Context Menu. The shadcn CLI installs those alongside the example.
NextIcons

Start building with ReUI Pro today.

Every Pro block, every style, and every future addition, with one license for unlimited projects.

Get All-Access

From $249, once. Lifetime updates.

Application

  • App ShellAdded 4 new App Shell blocks
  • Auth
  • Card
  • Dashboard
  • Dialog
  • Empty State
  • Event Calendar
  • Flow
  • Form
  • Gantt
  • Kanban Board
  • List
  • Navbar
  • Onboarding
  • Profile
  • Rich Text Editor
  • Schedule
  • Settings
  • Sheet
  • Stats
  • Timeline
  • Whiteboard
  • Wizard

Data Grid

  • Base
  • AdvancedNew Advanced category with 3 Data Grid blocks
  • Columns
  • Drag & Drop
  • Editing
  • Expansion
  • Filtering
  • Grouping
  • Virtualization

Charts

  • Area Chart
  • Bar Chart
  • Composed Chart
  • Line Chart
  • Pie Chart
  • Radial Chart
  • Sparkline
  • Status Tracker

AI & Agents

  • AI Chat
  • Agent Activity

Solutions

  • Dev Ops
  • AI Ops
  • CRM
  • Agents
  • Analytics
  • Billing
  • Bookings
  • Files
  • Inventory
  • Users

Templates

  • E-commerce
  • SaaS
  • Dashboard
  • Landing
  • All templates

eCommerce

  • Category Card
  • Checkout
  • Comparison
  • Coupon
  • Filter Sidebar
  • Product Card
  • Product Detail
  • Product Grid
  • Receipt
  • Review
  • Shopping Cart
  • Wishlist
  • Shop Hero

Marketing

  • Blog
  • Compare
  • Contact
  • CTA
  • FAQ
  • Hero
  • How It Works
  • Pricing

Resources

  • Components
  • Blocks
  • Icons
  • MCP for Agents
  • Docs
  • Support
  • Pricing
  • Tailwind Plus Alternative
  • Roadmap(has updates coming soon)
  • AffiliateSoon

Legal

  • Privacy Policy
  • Terms & Conditions
  • License
  • Refunds
  • Cookies

© 2026 ReUI. All rights reserved.

3.7K