Gathering detailed insights and metrics for @braks/revue-draggable
Gathering detailed insights and metrics for @braks/revue-draggable
Gathering detailed insights and metrics for @braks/revue-draggable
Gathering detailed insights and metrics for @braks/revue-draggable
A Vue component that makes anything draggable 🤏 Easy to use and control. Supports Vue3 and Vue2 🦾
npm install @braks/revue-draggable
Typescript
Module System
Node Version
NPM Version
57
Supply Chain
95.8
Quality
76.8
Maintenance
50
Vulnerability
100
License
TypeScript (51.76%)
Vue (46.93%)
JavaScript (0.98%)
HTML (0.33%)
Total Downloads
0
Last Day
0
Last Week
0
Last Month
0
Last Year
0
MIT License
219 Stars
262 Commits
19 Forks
7 Watchers
14 Branches
2 Contributors
Updated on Jul 12, 2025
Latest Version
0.5.1
Package Id
@braks/revue-draggable@0.5.1
Unpacked Size
83.79 kB
Size
20.16 kB
File Count
21
NPM Version
10.1.0
Node Version
20.9.0
Published on
Sep 05, 2024
Cumulative downloads
Total Downloads
Last Day
0%
NaN
Compared to previous day
Last Week
0%
NaN
Compared to previous week
Last Month
0%
NaN
Compared to previous month
Last Year
0%
NaN
Compared to previous year
2
2
Make your Vue components draggable. 🤏
Supports Vue 2 and Vue 3! Comes with a 🔋 batteries included component / directive / composable or for users who want more control a simple abstraction over drag events with the core, wich is also available as a component / directive / composable.
Based on React Draggable.
Check the Docs 📔 for an in-depth explanation and the Demo 🪄 to see Revue Draggable in action.
1$ npm i --save @braks/revue-draggable 2 3# or 4$ yarn add @braks/revue-draggable 5 6# or 7$ pnpm add @braks/revue-draggable
For Vue2 add the composition-api to your dependencies (if you're using Vue < 2.7).
1$ yarn add @braks/revue-draggable @vue/composition-api 2 3# or 4$ npm i --save @braks/revue-draggable @vue/composition-api
1// webpack.config.js 2 3resolve: { 4 alias: { 5 vue: 'vue/dist/vue.js' 6 } 7}
1// nuxt.config.ts 2export default { 3 alias: { 4 vue: 'vue/dist/vue.js' 5 } 6}
1// Vue3 2import { createApp } from 'vue'; 3import Draggable, { DraggablePlugin, DraggableDirective } from '@braks/revue-draggable'; 4 5const app = createApp(); 6 7// Use as Plugin (registers directives and components) 8app.use(DraggablePlugin); 9 10// or 11app.directive('draggable', DraggableDirective) 12app.component('Draggable', Draggable); 13 14app.mount('#root');
1// Vue2 2import Vue from 'vue'; 3import { DraggablePlugin, DraggableDirective } from '@braks/revue-draggable'; 4 5// Use as Plugin 6Vue.use(DraggablePlugin) 7 8// or 9Vue.directive('draggable', DraggableDirective) 10Vue.component('Draggable', Draggable)
The easiest way to make your elements draggable is by using the DraggableDirective which will handle everything for you with no configuration necessary.
1<div v-draggable="/* Pass DraggableProps as binding value here */" class="box">I use a directive to make myself draggable</div>
Or use the component wrapper. (In Vue2 make sure to include the full-build, runtime-build only works for Vue3.)
1<Draggable> 2 <div class="box">I use a wrapper</div> 3</Draggable>
Check the example file for more in-detail examples like dropping elements, setting boundaries or syncing states.
This project uses Vite for development and Rollup to create a distribution.
1# start (dev) 2$ pnpm dev 3 4# build app 5$ pnpm build 6 7# serve app from build 8$ pnpm serve 9 10# build dist 11$ pnpm build:dist
Set the environment variable DRAGGABLE_DEBUG
to enable logs on drag handlers.
Testing is done with Cypress. You can find the specs in the cypress directory;
1$ pnpm ci # starts test server and runs tests, make sure port 3000 is open
No vulnerabilities found.
Reason
no binaries found in the repo
Reason
no dangerous workflow patterns detected
Reason
license file detected
Details
Reason
Found 0/22 approved changesets -- score normalized to 0
Reason
0 commit(s) and 0 issue activity found in the last 90 days -- score normalized to 0
Reason
detected GitHub workflow tokens with excessive permissions
Details
Reason
no effort to earn an OpenSSF best practices badge detected
Reason
security policy file not detected
Details
Reason
project is not fuzzed
Details
Reason
branch protection not enabled on development/release branches
Details
Reason
dependency not pinned by hash detected -- score normalized to 0
Details
Reason
SAST tool is not run on all commits -- score normalized to 0
Details
Reason
55 existing vulnerabilities detected
Details
Score
Last Scanned on 2025-07-07
The Open Source Security Foundation is a cross-industry collaboration to improve the security of open source software (OSS). The Scorecard provides security health metrics for open source projects.
Learn More