VueInteract
Home
Getting Started
Composables
GitHub
Home
Getting Started
Composables
GitHub
  • Home
  • Getting Started
    • Adding it to your project
    • Using the plugin
      • Options
  • Composables
    • useDraggable
    • useResizable

Installation

This plugin is compatible with VueJS >= 3

The version is currently using InteractJS 1.10.x

Adding it to your project

npm i vue-interact

Using the plugin

import VueInteract from 'vue-interact';

const app = createApp(App);
app.use(VueInteract, {
    installGlobalProperty: true,
    installInject: true,
});

Options

export interface IVueInteractOptions {
    installInject?: boolean;
    installGlobalProperty?: boolean;
}

When installGlobalProperty is true will register the plugin globally as $interact.

When installInject is true will register the plugin as interact in the provide/inject system.

Both instances are merely the default InteractJS instance.

Check the documentation for the InteractJS instance here.

Check the documentation for composables here

Edit this page
Last Updated: 8/31/2024, 3:02:07 PM
Contributors: Jose Eduardo Kimura Reis, Kimuraz
Prev
Home
Next
Composables