Important: This documentation covers Yarn 1 (Classic).
For Yarn 2+ docs and migration guide, see yarnpkg.com.

Package detail

vue-fluid-dnd

carlosjorger3.8kMIT0.14.4TypeScript support: included

A Vue 3 drag and drop library to sort all kind of lists

vue, vue3, vuejs, component, dnd, library, drag, drop, dragging, drag&drop, drag-n-drop, draggable, droppable, sortable, lightweight, dependency-free, vue-fluid-dnd

readme

Icon
Vue Fluid DnD

npm bundle size license version GitHub issues GitHub stars twitter test_coverage

Vue Fluid DnD is a fluid, smooth and versatil drag and drop library for lists on Vue 3. It's alightweight tool ~7 Kb (gzip) with no depenencies. This library is a Vue Draggable Next alternative if you looking for a better ui experience.

🧰 Features

  • Fully customizable 🎨.
  • Zero dependencies 🪶.
  • Work with horizontal➡️and vertical list :arrow_down:.
  • Mouse 🐭 and touch 👉📱 (mobile, tablet and so on) support.
  • Nice documentation 📑 and examples.
  • Fully tested 🧪, typed and reliable.

✨ Inspirations

🚀 Getting Started

  1. Install vue-fluid-dnd:

    # with npm:
    npm i vue-fluid-dnd
    
    # with yarn:
    yarn add vue-fluid-dnd
    
    # with pnpm:
    pnpm i vue-fluid-dnd
  2. Import the vue composable

    import { useDragAndDrop } from "vue-fluid-dnd";
  3. Create a list that your want to sort an use useDragAndDrop

    // Each element have its own styles or classes and the draggable-id
    const listToSort = ref([
      {
        number: 1,
        style:
          "color: white; background-color: red; width: 50px; margin: 23px 0;",
      },
      //...
    ]);
    // create the parent element and set drag and drop configuration on the parent and children elements (creating events, statees, styles, etc) calling useDragAndDrop composable
    const { parent } = useDragAndDrop(listToSort);
  4. Create childrens

    <template>
       <div ref="parent" style="width: 40%; display: block">
          <div
             v-for="(element, index) in listToSort"
             :index="index"
             :style="element.style"
          >{{ element.number }}
          </div>
       </div>
    </template>
  5. Documentation

  6. 📚 Check out all the docs.

  7. 🛠️ Edit the previous here.
  8. 📘 See others examples here.

🤝 Contributing

If you're interested in contributing to vue-fluid-dnd, please read our contributing docs before submitting a pull request CONTRIBUTING.

🔑 License

changelog

Changelog

All notable changes to this project will be documented in this file.

The format is based on Keep a Changelog, and this project adheres to Semantic Versioning.

Unreleased

2.4.0 - 2025-05-26

2.3.0 - 2025-05-25

2.2.1 - 2025-05-22

2.2.0 - 2025-05-21

2.1.3 - 2025-05-20

2.1.2 - 2025-05-20

2.1.1 - 2025-05-18

2.1.0 - 2025-05-18

2.0.2 - 2025-05-13

2.0.1 - 2025-05-13

2.0.0 - 2025-05-12

1.3.3-beta.0 - 2025-05-11

1.3.2-beta.0 - 2025-05-08

1.3.1-beta.0 - 2025-05-08

1.3.0-beta.0 - 2025-05-08

1.2.1-beta.0 - 2025-05-07

1.2.0-beta.0 - 2025-05-01

1.1.2-beta.0 - 2025-04-28

1.1.1-beta.0 - 2025-04-27

1.1.0-beta.0 - 2025-04-27

1.0.9-beta.0 - 2025-04-22

1.0.8-beta.0 - 2025-04-22

1.0.7-beta.0 - 2025-04-22

1.0.6-beta.0 - 2025-04-09

1.0.5-beta.0 - 2025-04-09

1.0.4-beta.0 - 2025-04-09

1.0.3-beta.0 - 2025-04-09

1.0.2-beta.0 - 2025-04-09

1.0.1-beta.0 - 2025-04-09

1.0.0-beta.0 - 2025-04-09

0.14.4 - 2025-04-07

0.14.3 - 2025-04-07

0.14.2 - 2025-04-07

0.14.1 - 2025-04-05

0.14.0 - 2025-04-04

0.13.2 - 2025-03-18

0.13.1 - 2025-03-18

0.13.0 - 2025-03-18

0.12.8 - 2025-03-11

0.12.7 - 2025-03-10

0.12.6 - 2025-03-07

0.12.5 - 2025-03-05

0.12.4 - 2025-03-02

0.12.3 - 2025-02-25

0.12.2 - 2025-02-25

0.12.1 - 2025-02-20

0.12.0 - 2025-02-19

0.11.6 - 2025-02-15

0.11.5 - 2025-02-14

0.11.4 - 2025-02-10

0.11.3 - 2025-01-21

0.11.2 - 2025-01-13

0.11.1 - 2025-01-04

0.11.0 - 2025-01-03

0.10.1 - 2025-01-01

0.10.0 - 2025-01-01

0.9.4 - 2024-12-16

0.9.3 - 2024-12-07

0.9.2 - 2024-12-02

0.9.1 - 2024-11-30

0.9.0 - 2024-11-27

0.8.0 - 2024-11-19

0.7.0 - 2024-06-29

0.6.19 - 2024-06-26

0.6.18 - 2024-06-22

0.6.17 - 2024-06-20

0.6.16 - 2024-06-19

0.6.15 - 2024-06-18

0.6.14 - 2024-06-05

0.6.13 - 2024-06-02

0.6.12 - 2024-05-27

0.6.11 - 2024-05-25

0.6.10 - 2024-05-19

0.6.9 - 2024-04-24

0.6.8 - 2024-04-24

0.6.7 - 2024-04-22

0.6.6 - 2024-04-20

0.6.5 - 2024-04-13

0.6.4 - 2024-04-10

0.6.3 - 2024-04-09

0.6.2 - 2024-04-08

0.6.1 - 2024-04-07

0.6.0 - 2024-03-30

0.5.3 - 2024-03-30

0.5.2 - 2024-03-28

0.5.1 - 2024-03-19

0.5.0 - 2024-03-14

0.4.12 - 2024-03-13

0.4.11 - 2024-03-09

0.4.10 - 2024-03-09

0.4.9 - 2024-03-08

0.4.8 - 2024-03-08

0.4.7 - 2024-03-05

0.4.6 - 2024-03-05

0.4.5 - 2024-03-04

0.4.4 - 2024-03-04

0.4.3 - 2024-03-03

0.4.1 - 2024-03-03

0.4.0 - 2024-03-03

0.2.1 - 2024-03-03

0.2.0 - 2024-03-03

0.1.28 - 2024-03-03

0.1.26 - 2024-03-03

Added

  • Changelog