Open alexfauquette opened 1 year ago
Fix #120
It introduces useDragElement which simplifies the creation of a draggable component that can be controlled or not:
useDragElement
Two main ways to use them are:
initialPoint
onMove
point
The switch between controlled and uncontrolled behavior is a copy past from @mui codebase
@mui
Demo here
Still to do:
The latest updates on your projects. Learn more about Vercel for Git ↗︎
Fix #120
It introduces
useDragElement
which simplifies the creation of a draggable component that can be controlled or not:Two main ways to use them are:
initialPoint
andonMove
to get updates on the point positionpoint
andonMove
to control the positionThe switch between controlled and uncontrolled behavior is a copy past from
@mui
codebaseDemo here
Still to do: