(
className
)}
ref={ref}
+ {...groupProps}
>
(
classNames.blockToolbar
)}
>
-
-
-
-
- Drag to move
-
+
+ {isHovered && dragHandle}
+
diff --git a/packages/dnd/src/components/useDraggable.ts b/packages/dnd/src/components/useDraggable.ts
index 3b41172f50..f3a57e6768 100644
--- a/packages/dnd/src/components/useDraggable.ts
+++ b/packages/dnd/src/components/useDraggable.ts
@@ -1,4 +1,4 @@
-import React, { useRef } from 'react';
+import React, { useRef, useState } from 'react';
import { TEditor, TElement } from '@udecode/plate-common';
import { ConnectDragSource, DropTargetMonitor } from 'react-dnd';
@@ -6,6 +6,8 @@ import { DragItemNode, DropLineDirection, useDndBlock } from '..';
export type DraggableState = {
dropLine: DropLineDirection;
+ isHovered: boolean;
+ setIsHovered: (isHovered: boolean) => void;
isDragging: boolean;
nodeRef: React.RefObject