drag-child
v1.0.2
Published
A Simple drag drop actives.
Readme
📦 drag-child
A lightweight vanilla JavaScript draggable list library that allows you to reorder DOM elements using drag & drop while keeping your data array in sync.
Works with:
- ✅ Vanilla JavaScript
- ✅ Laravel (Vite)
- ✅ React / Vite / Webpack
- ✅ CDN (script tag)
✨ Features
- Drag and reorder child elements
- Syncs UI order with JavaScript array
- Simple and clean API
- No dependencies
- Lifecycle hooks:
onStartonMoveonEnd
📥 Installation
Using npm
npm install drag-child
