Installation

To integrate DropIt into your Svelte project, you'll first need to install the library as a dependency. Open your terminal and run the following command within your Svelte project directory:

npm install svelte-dropit

This command fetches the DropIt library from the npm registry and installs it in your project.

Importing DropIt into your Svelte Components:

Once installed, you can import DropIt into your Svelte components where you want to incorporate Drag and Drop functionality. In your Svelte component file, include the following import statement:

import DropIt from 'dropit-svelte';

Now that DropIt is successfully imported, you can use its various components, such as Draggable and Droppable, to implement a seamless and customizable Drag and Drop experience in your Svelte application. Refer to the DropIt documentation for detailed usage and customization instructions.

© 2024 DropIt - By Mathieu Parinet and Jacky Truong