Skip to Content

Context Menu

A context menu opens a menu at the pointer position when a user right clicks the trigger area. Pass two children: the trigger element followed by a Menu.

Right click here

Component props

NameTypeDescription
childrenReactNodeTrigger element followed by a Menu
onOpenChange(open: boolean) => voidCalled when the menu opens or closes