phx-react
Version:
PHX REACT
21 lines (20 loc) • 679 B
TypeScript
import React from 'react';
import { ItemInterface } from 'react-sortablejs';
export interface ISortGroupProps<T extends ItemInterface> {
/**
* mảng các item trong group
*/
list: T[];
/**
* những item cùng group sẽ có thể drag lên nhau
*/
group?: string;
enableBorder?: boolean;
renderItem: (item: T, index: number) => React.ReactNode;
/**
* @param group mảng các item trong group
*/
setList: (group: T[]) => void;
className?: string;
}
export default function Sortable<T extends ItemInterface>({ list, group, enableBorder, renderItem, setList, className, }: ISortGroupProps<T>): React.JSX.Element;