dropdown-menu
Installation
SKILL.md
Dropdown Menu Pattern
Build dropdown menus that work correctly in list/card contexts, handling z-index stacking and click-outside dismissal properly.
Why This Pattern?
Dropdown menus in list items have three common bugs:
- Clipped by parent's
overflow-hidden- dropdown gets cut off - Covered by sibling cards - z-index doesn't help across stacking contexts
- Double-toggle on trigger click - menu closes then reopens immediately
This pattern solves all three.
Core Implementation
"use client";