UNPKG

unsortable

Version:

Headless drag-and-drop library for nested sorting using state instead of DOM mutations.

13 lines (10 loc) 316 B
import { Unsortable } from '../lib' import { onDestroy } from 'svelte' class UnsortableSvelte extends Unsortable { /** @param {ConstructorParameters<typeof Unsortable>[0]=} options */ constructor(options) { super(options) onDestroy(() => this.destroy()) } } export { UnsortableSvelte as Unsortable }