Blenra
Optimized for: Gemini / ChatGPT / Claude

Advanced AI Prompt for Radix UI Context Menu with Hotkey Integration

Use this engineered prompt to drastically optimize your workflow and output.

Required Variables

  • [SHORTCUT_MAP]
  • [TARGET_ZONE]
  • [OS_SPECIFIC_LOGIC]
radix-context-menu-hotkeys.txt
Implement a Radix UI Context Menu for a [TARGET_ZONE] (e.g., a file explorer). Each menu item must be mapped to a [SHORTCUT_MAP]. Handle [OS_SPECIFIC_LOGIC] (Cmd vs Ctrl) for keyboard shortcuts. The context menu must be fully accessible via keyboard (Shift+F10) and provide visual hints for the shortcuts. Detail how to prevent the default browser context menu while ensuring the Radix menu is correctly positioned at the click coordinates. Include focus restoration logic to the specific item clicked.

Example Output

"The AI provides a ContextMenu component with integrated global hotkey listeners that trigger the same callbacks as the menu items, with visual 'Kbd' components inside the menu."