@thisux/sveltednd
Version:
A lightweight, flexible drag and drop library for Svelte 5 applications.
10 lines (9 loc) • 322 B
TypeScript
import type { DragDropOptions } from '../types/index.js';
interface DraggableOptions<T> extends DragDropOptions<T> {
interactive?: string[];
}
export declare function draggable<T>(node: HTMLElement, options: DraggableOptions<T>): {
update(newOptions: DraggableOptions<T>): void;
destroy(): void;
};
export {};