@octopusdeploy/design-system-components
Version:
The design systems component library.
15 lines (14 loc) • 498 B
TypeScript
import type * as React from "react";
export interface SortableItemModel {
Id: string;
Name: string;
}
interface SortableListProps<TItemType> {
items: TItemType[];
label?: string;
renderItem?: (item: TItemType) => React.ReactNode;
onItemsUpdated(sortedItems: TItemType[]): void;
isItemEditable?: boolean;
}
export declare function SortableList<TItemType extends SortableItemModel>(props: SortableListProps<TItemType>): import("react/jsx-runtime").JSX.Element;
export {};