create-interactive-menu

Use this skill when creating dropdowns, context menus, or overlays that need a polished UX (open/close animation, click-outside, Escape, etc.).

⭐0stars🔀0forks📁View on GitHub🕐Updated Dec 30, 2025

When & Why to Use This Skill

This Claude skill streamlines the creation of high-quality interactive menus, dropdowns, and overlays by providing standardized templates and a mandatory UX checklist. It ensures a polished user experience by automating the implementation of smooth animations, click-outside detection, keyboard accessibility (Escape key), and viewport safety, all while adhering to the Lumina design system's aesthetic guidelines.

Use Cases

  • Building accessible navigation dropdowns with integrated fade-in/out animations and scale transitions.
  • Implementing context menus that automatically close on external clicks or when the Escape key is pressed.
  • Creating responsive overlays that utilize viewport safety logic to prevent clipping near screen edges.
  • Standardizing UI components across a project using pre-defined Lumina style patterns for borders, shadows, and rounding.
nameCreate Interactive Menu
descriptionUse this skill when creating dropdowns, context menus, or overlays that need a polished UX (open/close animation, click-outside, Escape, etc.).

Create Interactive Menu

Preferred baseline: reuse the existing Lumina menu patterns (check src/lumina/components/common/Menu.tsx first).

Mandatory UX checklist

Any interactive menu/overlay must include:

  1. Open animation (fade-in + small translate/scale)
  2. Close animation (fade-out via CSS transitions)
  3. Click outside closes
  4. Escape closes
  5. Pointer-safe UX (hover delay when applicable)
  6. Viewport safety (flip/fit near edges when needed)
  7. Reduced-motion friendly (opacity/transform, no layout shift)

Templates

  • template_menu.tsx: a minimal menu component with animated open/close
  • useMenuInteraction.ts: click-outside + Escape + optional hover delay

Style guide (Lumina)

  • Background: bg-white
  • Border: border border-slate-200
  • Shadow: shadow-[0_10px_24px_rgba(15,23,42,0.12)]
  • Rounding: rounded-2xl / rounded-xl