ActionContextMenu7 props
Context Menu
A right-click context menu that appears at the cursor position. Use to provide contextual actions for specific elements or regions without cluttering the UI with visible buttons.
공식 문서 열기Preview
Import
import {ContextMenu} from '@astryxdesign/core/ContextMenu';Astryx 문서 권장 방식대로 root barrel이 아니라 컴포넌트 subpath에서 가져옵니다.
When to use
A right-click context menu that appears at the cursor position. Use to provide contextual actions for specific elements or regions without cluttering the UI with visible buttons.
contextmenuright-clickmenupopoveractionscontext
Important props
menuWidthnumber | stringoptional
sizesm | md | lgoptional
Theming targets
astryx-context-menu
Best practices
- DoKeep menu items concise and action-oriented; users expect quick access to contextual actions.
- DoUse sections and dividers to group related actions when the menu has many items.
- DoEnsure all context menu actions are also accessible via other UI elements for keyboard-only users.
- Do notUse a ContextMenu as the only way to access important actions; not all users know to right-click.