@progress/kendo-react-sortable
Version:
React Sortable provides a sortable drag-and-drop functionality to elements within a list. KendoReact Sortable package
45 lines (44 loc) • 1.39 kB
TypeScript
/**
* @license
*-------------------------------------------------------------------------------------------
* Copyright © 2026 Progress Software Corporation. All rights reserved.
* Licensed under commercial license. See LICENSE.md in the package root for more information
*-------------------------------------------------------------------------------------------
*/
/**
* Represents the props of the Sortable item UI component.
*/
export interface SortableItemUIProps {
/**
* The data object that represents the current Sortable item.
*/
dataItem: any;
/**
* The flag which describes that an item is disabled.
*/
isDisabled: boolean;
/**
* The flag which describes that an item is active.
*/
isActive: boolean;
/**
* The flag which describes that an item is dragged.
*/
isDragged: boolean;
/**
* The flag which describes that an item is rendered inside the drag cue.
*/
isDragCue: boolean;
/**
* The callback function that has to be passed to the `ref` property of the first child element.
*/
forwardRef?: (element: HTMLElement) => void;
/**
* The atributes that have to be passed to the first child element.
*/
attributes?: any;
/**
* The CSS styles that have to be passed to the first child element.
*/
style: React.CSSProperties;
}