bokuweb/react-rnd
Resizable + draggable React component
What
React component that makes any child both draggable and resizable, with bounds, grid snapping and controlled position/size.
How to use
npm i react-rndimport { Rnd } from 'react-rnd';
<Rnd default={{ x: 0, y: 0, width: 320, height: 200 }}>Box</Rnd>Reach for it when
building editors, dashboards or window-like panels users can move and resize.