I would like to build an interface like in the screenshot where you have a palette of components (buttons, sliders, etc...) that you can drag and drop on a canvas. Once there you can move them around (again drag and drop involved). Is this kind of interface possible with compose desktop? Would there be some example of such a UI somewhere? Couldn't really find any information on drag and drop in the first place for example. Thanks.
r
rnett
09/18/2021, 10:29 PM
You'll have to implement drag and drop yourself, there isn't good support for it yet in compose (although it's on the roadmap). There's
draggable
for horizontal or vertical, but it doesn't work for more complicated things. I implemented something similar here but the event handling is a bit hacky.