ancoleman avatar

Implementing Drag Drop

This is a comprehensive implementation guide for drag-and-drop interfaces using dnd-kit with React and TypeScript. It covers the main patterns you'd actually build: sortable lists, kanban boards, file upload zones, and reorderable grids. What stands out is the accessibility-first approach with keyboard navigation, screen reader support, and validation scripts baked in. The workflow is practical, walking you from analyzing requirements through performance optimization for large lists. It includes complete TypeScript examples and handles the tricky bits like touch support, state management, and the common pitfall of forgetting keyboard alternatives. If you're building any UI where users drag things around, this gives you the patterns and tooling to do it properly without reinventing the wheel.

skills.sh installs
368
GitHub stars
530
last updated
Aug 21, 2026

Install

$ npx -y skills add ancoleman/ai-design-components --skill implementing-drag-drop --agent claude-code

Installs into .claude/skills of the current project.

Files

Drag-and-Drop & Sortable Interfaces

Purpose

This skill helps implement drag-and-drop interactions and sortable interfaces using modern React/TypeScript libraries. It covers accessibility-first approaches, touch support, and performance optimization for creating intuitive direct manipulation UIs.

When to Use

Invoke this skill when:

  • Building Trello-style kanban boards with draggable cards between columns
  • Creating sortable lists with drag handles for priority ordering
  • Implementing file upload zones with visual drag-and-drop feedback
  • Building reorderable grids for dashboard widgets or galleries
  • Creating visual builders with node-based interfaces
  • Implementing any UI requiring spatial reorganization through direct manipulation

Core Patterns

Sortable Lists

Reference references/dnd-patterns.md for:

  • Vertical lists with drag handles
  • Horizontal lists for tab/carousel reordering
  • Grid layouts with 2D dragging
  • Auto-scrolling near edges

Kanban Boards

Reference references/kanban-implementation.md for:

  • Multi-column boards with cards
  • WIP limits and swimlanes
  • Card preview on hover
  • Column management (add/remove/collapse)

Sponsors

Details

Repository
github.com/ancoleman/ai-design-components
Categories
Frontend Development, AI & Agent Building, Productivity & Planning, Design & UI/UX
First seen
Jun 3, 2026

More from ancoleman/ai-design-components

All 4
1cloudwego avatareino-agentcloudwego/eino-extEino ADK agent construction, middleware, and runner. Use when a user needs to build an AI Agent, configure ChatModelAgent with ReAct pattern, use middleware (fi366skills.sh installs
2zzci avatarpma-gozzci/skillsGo implementation guide for PMA-managed service and CLI projects. Covers project layout (cmd/internal), strict linting with golangci-lint v2, database access (s366skills.sh installs
3mims-harvard avatardevtu-githubmims-harvard/tooluniverseGitHub workflow for ToolUniverse - push code safely by moving temp files, activating pre-commit hooks, running tests, and cleaning staged files. Use when pushin365skills.sh installs
4zzci avatarpma-bunzzci/skillsBun implementation guide for PMA-managed backend services and internal tools. Covers project layout and monorepo promotion, required quality gates, SQLite-first364skills.sh installs
5bria-ai avatarimage-utilsbria-ai/bria-skillClassic image manipulation with Python Pillow - resize, crop, composite, format conversion, watermarks, brightness/contrast adjustments, and web optimization. U360skills.sh installs
6weaviate avatarweaviate-cookbooksweaviate/agent-skillsUse this skill when the user wants to build AI applications with Weaviate. It contains a high-level index of architectural patterns, 'one-shot' blueprints, and 357skills.sh installs