useDragSort

  • Composables
  • exports: 6

What the @feugene/granularity/composables/useDragSort subpath exports, with signatures from its type declarations.

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

On this page

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>

Library prose

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