Skip to content
R

react-draggable

React draggable component

by strmlFree

#23in UI Libraries
0In stores

Description

react-draggable is a small React component for making elements draggable. It wraps an existing element and adds drag handlers and styles to…

Highlights

  • Makes elements draggable without adding a wrapper element
  • Moves items with CSS transforms
  • Axis, bounds, grid snapping and drag handles
  • Includes TypeScript types and supports React 16.3 and newer

Ratings & Reviews

No ratings yet

Be the first to rate react-draggable.

People also visit

R

react-resizable-and-movable

Resizable and movable component for React

UI Libraries
Launch
R

react-drag-and-drop

Basic Drag and Drop for React

UI Libraries
Launch
R

react-dnd

Drag and Drop for React

UI Libraries
Launch
R

react-movable

Drag and drop lists

UI Libraries
Launch
R

react-drag-listview

drag list view and table view component for react

UI Libraries
Launch
R

react-resizable-layout

Lightweight, accessible headless React component and hook

UI Libraries
Launch

react-draggable FAQ

What does react-draggable do?

It makes an existing element draggable in React, by adding drag handlers and styles to it.

Does it add an extra element to the page?

No. The README says it does not create a wrapper element in the DOM.

Which React version do I need?

Version 4.x supports React 16.3 and newer, version 3.x supports React 15 to 16, and version 2.x supports React 0.14 to 15.

Can I limit where an element can be dragged?

Yes. The bounds prop accepts parent, a CSS selector or explicit left, top, right and bottom values.

Does it have TypeScript types?

Yes. The README says TypeScript types are included.

What are the best react-draggable alternatives?

Popular alternatives to react-draggable include react-resizable-and-movable, react-drag-and-drop and react-dnd. See all react-draggable alternatives

Developer Stuff

Badges