UNPKG

fluid-dnd

Version:

An agnostic drag and drop library to sort all kind of lists. With current support for vue, react and svelte

5 lines (4 loc) 231 B
import { Config } from "../core"; export default function useDragAndDrop<T>(items: T[], config?: Config<T>): readonly [(parent: HTMLElement) => { destroy(): void; }, (index: number, value: T) => void, (index: number) => void];