useDragSort

Import

import { useDragSort } from '@feugene/granularity/composables/useDragSort'

Exports

DragSortOrientationtype
type DragSortOrientation = 'vertical' | 'horizontal'
DragSortModetype
type DragSortMode = 'pointer' | 'keyboard'
DragSortHitinterface
interface DragSortHit<TKey>
UseDragSortOptionsinterface
interface UseDragSortOptions<TKey, TTarget>
UseDragSortReturninterface
interface UseDragSortReturn<TKey, TTarget>
useDragSortfunction
function useDragSort<TKey, TTarget>(options: UseDragSortOptions<TKey, TTarget>): UseDragSortReturn<TKey, TTarget>

Descriptions come from the library in Russian and are not shown here — translating them is a decision of its own, see ADR-0003.

Library prose

Read it in the repository: docs/drag-sort.md

Source: @feugene/granularity 0.41.0, package.json#exports and dist/types