shadcn/ui Context Menu
Displays a menu to the user — such as a set of actions or functions — triggered by a button.
Shadcn/ui Context Menu - Figma Component
Displays a menu to the user — such as a set of actions or functions — triggered by a button. This Figma component is part of our comprehensive design system that brings the popular shadcn/ui library into your design workflow.
Every Context Menu variant includes all the necessary states, properties, and styling options you need to create consistent, production-ready designs. The component seamlessly integrates with your existing Figma files and maintains full compatibility with the shadcn/ui React implementation.
Features
- Right-click activation on desktop devices
- Long-press support for mobile touchscreens
- Nested submenus for hierarchical actions
- Support for icons, shortcuts, and descriptions
- Checkbox and radio items for togglable options
- Automatic positioning to stay within viewport
Browse all 56 components
- Accordion5 variants
- Alert Dialog5 variants
- Alert4 variants
- Aspect Ratio2 variants
- Avatar8 variants
- Badge5 variants
- Breadcrumb5 variants
- Button Group10 variants
- Button13 variants
- Calendar9 variants
- Card4 variants
- Carousel5 variants
- Chart6 variants
- Checkbox6 variants
- Collapsible3 variants
- Combobox10 variants
- Command4 variants
- Context Menu8 variants
- Data Table1 variant
- Date Picker6 variants
- Dialog4 variants
- Direction1 variant
- Drawer3 variants
- Dropdown Menu11 variants
- Empty5 variants
- Field11 variants
- Hover Card2 variants
- Input Group12 variants
- Input OTP8 variants
- Input13 variants
- Item9 variants
- Kbd4 variants
- Label1 variant
- Menubar4 variants
- Navigation Menu1 variant
- Pagination2 variants
- Popover3 variants
- Progress2 variants
- Radio Group5 variants
- Resizable2 variants
- Scroll Area1 variant
- Select5 variants
- Separator3 variants
- Sheet2 variants
- Sidebar1 variant
- Skeleton5 variants
- Slider5 variants
- Sonner3 variants
- Spinner6 variants
- Switch5 variants
- Table2 variants
- Tabs4 variants
- Textarea4 variants
- Toggle Group6 variants
- Toggle4 variants
- Tooltip3 variants
Context menus in Figma
The shadcn/ui figma Context Menu appears on right-click with contextual actions. Design file managers, image editors, and data tables in Figma with right-click menus. This shadcn figma component matches the Radix UI implementation perfectly.
Designing context-aware menus
Design context menus in Figma that show relevant actions for each item type—different options for files, folders, or images. The shadcn/ui figma component includes submenus, separators, and keyboard shortcuts for complete menu designs.
Context Menu vs Dropdown
Use the shadcn figma Context Menu for right-click actions and Dropdown Menu for explicit button clicks. Design the right pattern in Figma for each use case—context menus for item actions, dropdowns for toolbar menus.
Mobile context menu patterns
Design mobile alternatives in Figma with the shadcn/ui figma component—long-press gestures or three-dot buttons. Prototype mobile-friendly menu interactions that work on touch devices without right-click.
Your questions, answered
Common questions about the Context Menu component in the shadcn/ui Figma kit.
Use Context Menus for actions related to specific items or areas in your interface. They're perfect for file operations (copy, delete, rename), text editing (cut, copy, paste), or any situation where actions depend on what the user right-clicked.
Yes! While desktop users can right-click, mobile users trigger the context menu with a long-press gesture. The component handles both interaction methods seamlessly, providing a consistent experience across all devices.
Absolutely. Context Menus support checkbox and radio items, perfect for toggling settings or selecting options directly from the menu. For example, "Show Hidden Files" or "Sort by: Date/Name/Size".
Context Menus support nested submenus for organizing many actions. Hovering or clicking a submenu trigger opens a second menu, allowing hierarchical navigation through related actions without overwhelming the initial menu.
Yes! Menu items can display keyboard shortcuts on the right side, helping users learn and remember faster ways to perform actions. This is especially useful for power users who prefer keyboard navigation.
Yes, this Figma Context Menu component matches the shadcn/ui implementation exactly, ensuring consistent behavior, positioning, and interactions between design and production code.