svelte-dnd-action-custom-drop Svelte Themes

Svelte Dnd Action Custom Drop

This is an example use of svelte-dnd-action, using custom drop capability.

svelte-dnd-action with customDrop

This is an example use of svelte-dnd-action's TRIGGERS.USER_DROPPED consider event trigger.

Files can be sorted using drag-and-drop (i.e. the usual capability of svelte-dnd-action), but can also be dragged to Favorites, Folders, or Trash.

  1. Favorites make a COPY of the file
  2. Folders are used to MOVE the file
  3. Trash is used to DELETE the file

Get started

Install the dependencies...

yarn install

...then start Rollup:

yarn dev

Navigate to localhost:5000. You should see your app running.

Top categories

Loading Svelte Themes