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.
name | type | required | comment |
---|---|---|---|
height | number | yes | Height of the item. Needed to calculate offset from each corner. |
onChange | (rotation: number) => void | yes | |
width | number | yes | Width of the item. Needed to calculate offset from each corner. |
label | ReactNode | no | Renders a label near the currently hovered corner handle. |
onEnd | (rotation: number) => void | no | |
onInteractEnd | () => void | no | |
onInteractStart | () => void | no | |
onStart | () => void | no |
Result
Loading...
Live Editor