@apwize/react-reorderable
v1.0.4
Published
Wrapping your components in ReorderableItem allows user to drag them to reorder.
Downloads
3
Readme
react-reorderable
Wrap your custom components to add drag to reorder capabilities
Demo: https://malexandrum.github.io/react-reorderable/
Props
acceptedTypes: string[]
- list of types that this item accepts to be dragged overdisableAnimation?: boolean
ghostOpacity?: number
- opacity for preview of item being draggedhandleClass?: string
- class of element in your custom component that will be used as a drag handle. If not specified, your component will be draggable from any pointonDrop: (targetType: string, sourceType: string, targetId: string, sourceId: string, isBefore: boolean) => void
- your handler will be called when element has been successfully dropped on a target that accepts source