Package Exports
- drag-selectjs
Readme
drag-selectjs ⚡️
Make any element selectable with just a few lines of code 👊
- Lightweight ☁️
- Easy to use 🌞
- Compatible with any frontend framework 🔥
Installation
npm i drag-selectjsor...
yarn add drag-selectjsUsage
import { dragSelect, onSelected } from 'drag-selectjs'
dragSelect('drag-box-class', 'selected-element-class') // Arguments are optional
onSelected(selected => {
console.log(selected) // [div.selected-element-class, ...]
})Contributions welcome!