UNPKG

vue-fluid-dnd

Version:

A Vue 3 drag and drop library to sort all kind of lists

8 lines (7 loc) 301 B
import { Ref } from "vue"; import { Config } from "../core"; export default function useDragAndDrop<T>(items: Ref<T[]>, config?: Config<T>): { parent: Ref<HTMLElement | undefined, HTMLElement | undefined>; removeAt: (index: number) => void; insertAt: (index: number, value: T) => void; };