DEV Community

Cover image for Snap DnD: Lightweight Drag and Drop for Web Components and Vanilla JS
jQueryScript
jQueryScript

Posted on

Snap DnD: Lightweight Drag and Drop for Web Components and Vanilla JS

Snap DnD: a vanilla JavaScript library that handles drag and drop with zero dependencies. The core bundle weighs 5KB gzipped.

Key features:

  • Web Component and Shadow DOM support
  • Object pooling for memory efficiency
  • Sortable, Kanban, and FileDrop plugins
  • Works with Lit Elements out of the box
  • Declarative data attributes or full imperative API

Check it out if you need drag-drop functionality that works with modern web components.

πŸ‘‰ Blog Post

πŸ‘‰ GitHub Repo

πŸ‘‰ Live Demo

Top comments (0)