OptionalablesOptionalcheckChecks whether this is an element to input text or contentEditable, and prevents dragging.
OptionalclassYou can specify the className of the moveable controlbox.
OptionalcontainerA container into which Moveables are inserted. Set it only when used within the slot of Web Components or when the container is different.
OptionalcontrolBy adding padding to the control, you can increase the area of the control that can be clicked and dragged.
Either rotateAroundControls or displayAroundControls can be used.
Optionalcspadd nonce property to style for CSP.
OptionaldragInstead of firing an event on the target, we add it to the moveable control element. You can use click and clickGroup events. Add an event to the moveable area instead of the target for stopPropagation.
OptionaldragContainer area where drag works
OptionaldragWhether to drag the focused input
If checkInput is true, this option is not applied.
OptionaldragThe external target(s) to drag Moveable target(s)
OptionaldragIf dragTarget is set directly, taget itself cannot be dragged. Whether to drag the target as well.
OptionalflushIf you are using React 18's concurrent mode, use flushSync for UI sync.
OptionalhideWhether to hide the line corresponding to the rect of the target.
OptionallineBy adding padding to the line, you can increase the area of the line that can be clicked and dragged.
OptionalonWhen the targets of Moveable are changed, the changeTargets event is called.
OptionaloriginWhether or not the origin control box will be visible or not.
OptionalpaddingAdd padding around the target to increase the drag area.
OptionalpassSet pointerEvents: none; css to pass events in dragArea.
OptionalpersistData for first render
OptionalpinchWhether the container containing the target becomes a pinch.
OptionalpinchMinimum distance to pinch.
OptionalpreventPrevent click event on dragStart. (mousedown, touchstart)
OptionalpreventPrevent click event on drag. (mousemove, touchmove)
OptionalpreventWhether to call preventDefault on touchstart or mousedown
OptionalpreventWhether to prevent dragging using the right mouse button
OptionalpreventWhether to prevent dragging using the wheel (middle) mouse button
OptionalpropsYou can use props in object format or custom props.
OptionalrootMoveable Root Container (No Transformed Container)
OptionalstopWhether to prevent bubbling of events like mousedown, touchstart, etc.
OptionalsvgSets the transform origin based on the svg target. If not set, it is set as the transform origin based on the owner of svg.
OptionaltargetThe target to indicate Moveable Control Box.
OptionaltransformThe default transformOrigin of the target can be set in advance.
OptionaltranslateYou can set the translateZ value of moveable.
OptionaltriggerLets generate events of ables at the same time. (like Resizable, Scalable)
OptionaluseWhether to accurately show the position of a movable control box Because getBoundingClientRect is used, css zoom, transform: rotate between container and rootContainer cannot be used. group is not supported.
OptionaluseWhether the target size, pos in inline style is detected and updated whenever it changes.
It is more effective when used together with useResizeObserver.
OptionaluseWhether the target size is detected and updated whenever it changes.
It is more effective when used together with useMutationObserver.
OptionalviewIf you want to set the dragging information to the viewer, refer to the following.
OptionalzoomZooms in the elements of a moveable.
You can add your custom able.