-
-
Notifications
You must be signed in to change notification settings - Fork 1.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add Drag & drop component #12364
Comments
This comment was marked as resolved.
This comment was marked as resolved.
This comment was marked as resolved.
This comment was marked as resolved.
So ... basically react-beautiful-dnd? I don't think there would be any extra value if Material UI were to re-implement that behavior. |
That is fair. I was unaware that existed. Additionally, in my opinion, if Material were to implement this enhancement themselves then it would be easier for developers to use, especially in the long run Vs just adding another dependency to the ever-growing list that is the package file. Not to mention more likely to be shown in the documentation as a feature/way to do things, Vs an external package which would at best get a mention on the |
@Lagicrus I'm curious to hear more about this. What's issues have you faced with growing the list of dependencies in the package.json? |
Perhaps I worded this badly. But nothing wrong with Material UI. |
react-beautiful-dnd doesn't have material-ui design and uses emotion instead. For the record there's also react-dnd. |
Summary 💡
Drag and drop components to reorder/reorganize them. Components that could use this could be either lists, grids, or chips.
Such as described on uxdesign]: https://uxdesign.cc/drag-and-drop-for-design-systems-8d40502eb26d and mentioned briefly on https://m2.material.io/design/interaction/gestures.html#types-of-gestures.
For lists, it could be done via an Icon that 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 that the user grabs.
Icon wise some ideas could be the drag handle, open_with, or toggle with CSS between the
grab
andgrabbing
cursor icon as outlined on MDNhttps://web.archive.org/web/20200710063129/http://materialdesignadmin.com/sortable.html which I think uses https://github.com/SortableJS/Sortable
Examples 🌈
Motivation 🔦
An easy way for developers to allow users to reorganize images, text, and such like which are grouped, alternatively as a quiz/ranking system of a 1 to 10 "Organise this list in the order in which you like these flavors of ice-cream".
Search keywords:
The text was updated successfully, but these errors were encountered: