interactjs component for Vue3
npm install vue3-interactjsVue3-interactjs is interact.js component for Vue3.
``sh`
$ npm install vue3-interactjs
`sh`
$ yarn add vue3-interactjs
`javascript
import { createApp } from "vue";
import VueInteractJs from "vue3-interactjs";
const app = createApp(...);
app.use(VueInteractJs);
// Now the app has started!
app.mount("#app");
`
`html
:dragOption="dragOption"
resizable
:resizeOption="resizeOption"
class="resize-drag"
:style="style"
@dragmove="dragmove"
@resizemove="resizemove"
>
Drag and drop, resize from any edge or corner
`
`html`
:dragOption="dragOption"
:resizable="resizable"
:resizeOption="resizeOption"
:gesturable="gesturable"
:gestureOption="resizeOption"
/>
`html`
resizable
@dragstart="dragstart"
@dragmove="dragmove"
@draginertiastart="draginertiastart"
@dragend="dragend"
@resizemove="resizemove"
@ready="ready"
@hold="hold"
...
/>
Clone this repository and run command
`sh``
$ npm run demo:dev