@makeen.io/material-ui-kit
Version:
Makeen UI components kit. Based on material-ui.
16 lines (15 loc) • 598 B
TypeScript
import React from "react";
import { DragObjectWithType, DragSourceMonitor } from "react-dnd";
export interface DraggableProps extends DragObjectWithType {
children: React.ReactNode;
className?: string;
data: any;
style?: Record<string, any>;
onDrag(item: {
data?: Record<string, any>;
type: string | symbol;
}, monitor?: DragSourceMonitor): void;
onDrop(item: any, monitor?: DragSourceMonitor): void;
}
declare const _default: ({ data, className, children, style, onDrag, onDrop, type, ...rest }: DraggableProps) => JSX.Element;
export default _default;