ES Drager provides resize functionality through draggable handles on the edges and corners of the element. This allows for intuitive resizing of elements while maintaining aspect ratio or freely adjusting dimensions.
To enable resizing, simply add the resizable
prop to your Drager component:
<Drager
className="w-32 h-32 bg-blue-500"
resizable
>
Resizable content
</Drager>
When resizable
is enabled, eight resize handles appear:
Resize functionality can be combined with other features like rotation, scaling, and connections:
<Drager
className="w-32 h-32 bg-blue-500"
resizable
rotatable
scalable
>
Multi-feature element
</Drager>