Sortable List with Drag & Drop
Display a list of items that can be sorted by dragging and dropping.
- Home
- Collections
- About Us
- My Account
Usage
With actions
API Reference
Prop | Type | Default |
---|---|---|
componentItem | (data: any, parentId: string | number | null) => ReactNode | - |
data | any[] | - |
maxDepth | number | - |
onCollapse | (props: { id: string | number; isOpen: boolean }) => void | - |
onDragEnd | (props: { id: string | number; parentId: string | number | null; indexToMove: number; }) => void | - |