![require(esm) Backported to Node.js 20, Paving the Way for ESM-Only Packages](https://cdn.sanity.io/images/cgdhsj6q/production/be8ab80c8efa5907bc341c6fefe9aa20d239d890-1600x1097.png?w=400&fit=max&auto=format)
Security News
require(esm) Backported to Node.js 20, Paving the Way for ESM-Only Packages
require(esm) backported to Node.js 20, easing the transition to ESM-only packages and reducing complexity for developers as Node 18 nears end-of-life.
vue-fluid-dnd
Advanced tools
Vue Fluid DnD is a fluid, smooth and versatil drag and drop library for lists on Vue3. It's alightweight tool ~7 Kb (gzip) with no depenencies. This library is a Vue Draggable alternative if you looking for a better ui experience.
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
Import the vue composable
import { useDragAndDrop } from "vue-fluid-dnd";
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);
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>
Documentation
If you're interested in contributing to vue-fluid-dnd, please read our contributing docs before submitting a pull request CONTRIBUTING.
FAQs
A Vue 3 drag and drop library to sort all kind of lists
The npm package vue-fluid-dnd receives a total of 291 weekly downloads. As such, vue-fluid-dnd popularity was classified as not popular.
We found that vue-fluid-dnd demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 0 open source maintainers collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
require(esm) backported to Node.js 20, easing the transition to ESM-only packages and reducing complexity for developers as Node 18 nears end-of-life.
Security News
PyPI now supports iOS and Android wheels, making it easier for Python developers to distribute mobile packages.
Security News
Create React App is officially deprecated due to React 19 issues and lack of maintenance—developers should switch to Vite or other modern alternatives.