Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

material-ui chips - drag and drop support

Tags:

I am would like to use material-ui chips in my react-app. The problem is that I would like to move the chips with drag and drop. This functionality is not supported by material ui. Is there a workaround / extension to get chips draggable? <!--

If there is no other way, I would change to another library. Does anyone know one? Thank you

//EDIT-Good solution

You can make any component draggable with react-beautiful-dnd

like image 424
Paul Avatar asked Apr 23 '19 12:04

Paul


People also ask

Do big companies use material UI?

233 companies reportedly use Material-UI in their tech stacks, including medium.com, MAK IT, and Scale.

What is chip MUI?

Chips are compact elements that represent an input, attribute, or action. Chips allow users to enter information, make selections, filter content, or trigger actions.


1 Answers

You can use the Draggable component from material UI:

<Draggable><Chip label="your chip" /></Draggable>

See full example: https://material-ui.com/demos/dialogs/#draggable-dialog

like image 61
Simon Thiel Avatar answered Oct 05 '22 01:10

Simon Thiel