drag-drop
Installation
SKILL.md
Drag & Drop Patterns
When to Use
- Reordering items in a list (priority, sequence)
- Kanban-style board movement (status changes)
- File upload zones
- Widget/layout customization
Interaction Design
- Drag handle: Use a grip icon (⠿ or ≡), don't make the entire item draggable (interferes with text selection)
- Cursor change:
grabon hover,grabbingwhile dragging - Drop preview: Show where the item will land (insertion line or placeholder)
- Ghost/shadow: Semi-transparent copy of the item follows the cursor
- Auto-scroll: Scroll the container when dragging near edges
- Snap: Items snap to valid drop positions