Skip to main content

Custom Cursor

stickHoverRender can customize the cursor icon shown when hovering resize handles.

<ReactDragResizeRotate
stickHoverRender={(cursorRotate) => ({
x: 16,
y: 16,
htmlText: `<svg xmlns="http://www.w3.org/2000/svg" width="32" height="32" viewBox="0 0 32 32"><path d="M 16,5 L 12,10 L 14.5,10 L 14.5,22 L 12,22 L 16,27 L 20,22 L 17.5,22 L 17.5,10 L 20,10 L 16,5 Z" fill="crimson" stroke="white" stroke-width="1.2" style="transform:rotate(${cursorRotate}deg);transform-origin:16px 16px"/></svg>`,
})}
/>