Skip to content

Commit

Permalink
feat: update props
Browse files Browse the repository at this point in the history
  • Loading branch information
sadmann7 committed May 11, 2024
1 parent 571b851 commit f31f16b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/components/ui/sortable.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ interface SortableProps<TData extends { id: UniqueIdentifier }>
/**
* An optional callback function that is called when an item is moved.
* It receives an event object with `activeIndex` and `overIndex` properties, representing the original and new positions of the moved item.
* This will override the default behavior of moving the item in the array.
* This will override the default behavior of updating the order of the data items.
* @type (event: { activeIndex: number; overIndex: number }) => void
* @example
* onMove={(event) => console.log(`Item moved from index ${event.activeIndex} to index ${event.overIndex}`)}
Expand Down

0 comments on commit f31f16b

Please sign in to comment.