ReorderList API
Props, callbacks and methods. Select an underlined type to explore its fields, allowed values and callback arguments.
ReorderList11 props2 callbacks0 methods
Props11
| Name | Type | Description |
|---|---|---|
itemsRequired |
| Ordered items to render. Each item follows the shape shown in the expanded type. |
itemKeyRequired |
| Returns a stable unique key for each reorderable item. |
renderItemRequired |
| Renders a list item from its data and index. |
renderHandleOptional |
| Renders the drag handle for a reorderable list item. |
itemAttributesOptional |
| Returns additional HTML attributes for a reorderable item. |
classNameOptional | string | undefined | Additional CSS classes applied to the component root. |
rowClassNameOptional |
| Additional CSS classes for the row part of the component. |
endClassNameOptional | string | undefined | Additional CSS classes for the end part of the component. |
draggedKeyOptional | string | number | undefined | Key of the item currently being dragged. |
dropIndexOptional | number | undefined | Insertion boundary at which the current drop indicator is shown. |
emptyOptional |
| Empty-state flag or empty-state content, according to the declared type. |
Events and callbacks2
| Name | Type | Description |
|---|---|---|
onDragOverRequired |
| Handles drag movement over an insertion boundary; receives its index. |
onDropRequired |
| Handles a drop at the supplied insertion boundary. |
Methods0
No component-specific imperative methods. Use props and callbacks to control this component.