
Security News
Browserslist-rs Gets Major Refactor, Cutting Binary Size by Over 1MB
Browserslist-rs now uses static data to reduce binary size by over 1MB, improving memory use and performance for Rust-based frontend tools.
vue3-juice-dnd
Advanced tools
Juicy, smooth and versatil drag and drop for lists with Vue.
Install vue3-juice-dnd:
# with npm:
npm i vue3-juice-dnd
# with yarn:
yarn add vue3-juice-dnd
# with pnpm:
pnpm i vue3-juice-dnd
# with ultra:
ultra install vue3-juice-dnd
Import components
import { Draggable, Droppable } from "vue3-juice-dnd";
Create a list that your want to sort
// Each element have its own styles or classes and the draggable-id
const listToSort = ref([
{
"draggable-id": "h1",
number: 1,
style:
"color: white; background-color: red; width: 50px; margin: 23px 0;",
},
//...
]);
Use the components
//pass setRef to child to have the reference of draggable element
//pass the direction of the list and droppable id
<Droppable droppable-id="droppable-id" direction="vertical" :items="list1">
<div style="width: 40%; background-color: darkgray; display: block">
<Draggable
v-for="(element, index) in listToSort"
v-slot="{ setRef }"
:draggable-id="element['draggable-id']"
:index="index"
>
<div :ref="setRef" :style="element.style">{{ element.number }}</div>
</Draggable>
</div>
</Droppable>
If you're interested in contributing to Fvue3-juice-dnd JS, please read our contributing docs before submitting a pull request CONTRIBUTING.
FAQs
## 👋 Introduction
The npm package vue3-juice-dnd receives a total of 15 weekly downloads. As such, vue3-juice-dnd popularity was classified as not popular.
We found that vue3-juice-dnd demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer 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
Browserslist-rs now uses static data to reduce binary size by over 1MB, improving memory use and performance for Rust-based frontend tools.
Research
Security News
Eight new malicious Firefox extensions impersonate games, steal OAuth tokens, hijack sessions, and exploit browser permissions to spy on users.
Security News
The official Go SDK for the Model Context Protocol is in development, with a stable, production-ready release expected by August 2025.