alepha@docs:~/framework/docs/reference/react-hooks$
cat useSortableItem.md | pretty
1 min read
Last commit:

#useSortableItem

#Import

typescript
1import { useSortableItem } from "@alepha/ui/sortable";

#Overview

One item of a useSortableList: the element both dragged and dropped on, and only the pointer listener of @dnd-kit. The keyboard move is the list's own (onKeyDown), on whichever element of the item takes focus.