Components / UI components / Navigation
NavigationExperimental alpha

ContextMenu

Contextual actions available from pointer and keyboard invocation.

ContextMenu preview

Project preview — right-click or focus and press Shift+F10.

No action selected.

Interactions use local sample data.

Usage and props

Provide a visible explanation of the context action. Essential actions should also be discoverable without a context menu.

Supported inputs

This is the public signature used by this example. Open Code to see how the values and callbacks fit together.

Root: onOpenChange? · Trigger · Content · Item: onSelect/disabled?
How state and callbacks work

These are the main props for the example. The package's TypeScript declarations include the full API.

Customize and use with a keyboard