DragItemOptions: Omit<DragOptions, "bounds" | "transform" | "recomputeBounds"> & {
    flipDuration: number;
    items: unknown[];
    minSwapDistance?: number;
}

Options of a draggable item action.

Extends neodrag options.

Type declaration

  • flipDuration: number

    Duration of flip animation.

  • items: unknown[]

    Array of draggable items.

  • OptionalminSwapDistance?: number

    Min distance between items swaps.

    After doing an item swap, the next swap will be ignored if the distance between the last swap and the current position is less than this value.