Skip to main content

CornerRotationHandles

The CornerRotationHandles component displays a click handler for a rotation interaction outside of each corner of the item.

info

Unlike the RotationHandle component, the CornerRotationHandle does not automatically round the resulting rotation. You may still round the result on output if needed.

nametyperequiredcomment
heightnumberyes

Height of the item. Needed to calculate offset from each corner.

onChange(rotation: number) => voidyes
widthnumberyes

Width of the item. Needed to calculate offset from each corner.

labelReactNodeno

Renders a label near the currently hovered corner handle.

onEnd(rotation: number) => voidno
onInteractEnd() => voidno
onInteractStart() => voidno
onStart() => voidno
Result
Loading...
Live Editor