bokuweb/react-rnd

Resizable + draggable React component

TypeScriptโ˜… 4.3k๐ŸŽจ UI Kits & Design

What

React component that makes any child both draggable and resizable, with bounds, grid snapping and controlled position/size.

How to use

bash
npm i react-rnd
javascript
import { 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.