question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Add drag & drop component

See original GitHub issue
  • I have searched the issues of this repository and believe that this is not a duplicate.

Summary 💡

Drag and drop components to reorder/reorganise them. Components that could use this could be either lists, grids, or chips. Such as described on uxdesign and mentioned briefly on material.io

For lists it could be done via an Icon which has that functionality whilst the rest of the ListItem does not, and you drag the “handle”, not the list itself. For more “boxy” elements, could work as a wrapper around the entire element OR as an icon in a corner which the user grabs.

Icon wise some ideas could be the drag handle, open_with, or toggle with CSS between the grab and grabbing cursor icon as outlined on MDN

Examples 🌈

http://materialdesignadmin.com/sortable.html which I think uses https://github.com/SortableJS/Sortable https://jsbin.com/visimub/edit?html,js,output

Motivation 🔦

An easy way for developers to allow users to reorganise images, text and such like which are grouped together, alternatively as a quiz/ranking system of a 1 to 10 “Organise this list in the order in which you like these flavours of ice-cream” (like this )

Issue Analytics

  • State:open
  • Created 3 years ago
  • Reactions:19
  • Comments:7 (5 by maintainers)

github_iconTop GitHub Comments

7reactions
TheHolyWafflecommented, Jun 26, 2020

So … basically react-beautiful-dnd? I don’t think there would be any extra value if Material UI were to re-implement that behavior.

0reactions
re-thccommented, Aug 10, 2020

react-beautiful-dnd doesn’t have material-ui design and uses emotion instead. For the record there’s also react-dnd.

Read more comments on GitHub >

github_iconTop Results From Across the Web

How to Build Drag and Drop Components in React - MakeUseOf
Drag and drop is a way of moving or manipulating elements on a screen using a mouse or touchpad. It's perfect for reordering...
Read more >
Drag and Drop | Angular Material
The drag-and-drop module supports animations both while sorting an element inside a list, as well as animating it from the position that the...
Read more >
How to Add Drag and Drop in React with ... - freeCodeCamp
Drag and Drop is a common interaction technique added to allow people to intuitively move things around on a page. This could be...
Read more >
How do I use drag and drop with React? - Rootstack
How you can use drag and drop in your React app · Step 1: Create a list and make its elements draggable ·...
Read more >
How to implement drag and drop in React with React DnD
The most common use cases for drag and drop in React include uploading files, moving items between multiple lists, and rearranging images and ......
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found