Skip to example

Radix: Context Menu

A context menu with smooth animations using Radix UI and Motion. Note: This example doesn't use AnimatePresence to add exit animations because ContextMenu.Root doesn't support controlled state. We need access to this state for AnimatePresence to conditionally render the children.

React

Source code