fluid-dnd
Version:
An agnostic drag and drop library to sort all kind of lists. With current support for vue, react and svelte
70 lines (46 loc) β’ 2.34 kB
Markdown
<h1 align="center">
<img src="public/fluid-dnd-logo.png"
alt="Icon" width="200" height="200" />
</h1>
<div align="center">

[](https://github.com/carlosjorger/fluid-dnd/blob/main/LICENSE)
[](https://www.npmjs.com/package/fluid-dnd)


_Drag and drop elements of your list smoothly and effortlessly_
[π **Documentation**](https://fluid-dnd.netlify.app/) | [π€Ή **Examples**](https://fluid-dnd.netlify.app/vue/example/vertical-list/single-vertical-list/)
<img src="https://github.com/user-attachments/assets/1b7ac5e3-48e9-43f9-a577-e78c6b9eacae" width="100%"/>
</div>
## πͺͺ About
Fluid DnD is a **fluid**, **agnostic** and **versatile** drag and drop
library for lists; with support for **Vue**, **React** and **Svelte**. It's a **lightweight** tool ~8 Kb (gzip) with no depenencies.
## π§° Features
- β
**Fully customizable π¨**.
- β
**Zero dependencies πͺΆ**.
- β
**Works with horizontalβ‘οΈand vertical listβ¬οΈ**.
- β
**Mouse π and touch ππ± (mobile, tablet and so on) support**.
- β
**Clear documentation π and examples**.
- β
**Fully tested π§ͺ, typed and reliable**.
## β¨ Inspirations
- β
π₯ Animations by [react-beautiful-dnd](https://github.com/atlassian/react-beautiful-dnd)
- β
π¨ Api by [Drag & Drop by Formkit](https://drag-and-drop.formkit.com/)
- β
π§° Features by [Vue.Draggable](https://github.com/SortableJS/Vue.Draggable)
## π Getting Started
1. **Install fluid-dnd:**
```bash
# with npm:
npm i fluid-dnd
# with yarn:
yarn add fluid-dnd
# with pnpm:
pnpm i fluid-dnd
```
## π Libraries Support
- **Vue** >=3.0.0
- **React** >= 18.0.0
- **Svelte** >= 5.0.0
## π€ Contributing
If you're interested in contributing to [fluid-dnd](https://github.com/carlosjorger/fluid-dnd), please read our [CONTRIBUTING GUIDELINES](./CONTRIBUTING.md) before submitting a pull request.
## π License
- [MIT](https://github.com/carlosjorger/fluid-dnd/blob/main/LICENSE).