@hello-pangea/dnd
Version:
Beautiful and accessible drag and drop for lists with React
11 lines (8 loc) • 296 B
text/typescript
import React from 'react';
import type { DraggableId, DroppableId, TypeId } from '../../types';
export interface DroppableContextValue {
isUsingCloneFor: DraggableId | null;
droppableId: DroppableId;
type: TypeId;
}
export default React.createContext<DroppableContextValue | null>(null);