Comment

Comment by recursivedoubts

There is an htmx demo on drag-and-drop (in the reorder sense) using Sortable.js here:

https://htmx.org/examples/sortable/

Like most of the examples on the htmx site it is pretty bare bones (we keep it that way to focus on the concepts) but it's a reasonable demonstration of the integration. Whether that is good enough of course depends on your use case

If you want an integrated and polished ecosystem that's something htmx isn't going to provide: it's a library focused (mainly) on one thing: generalizing hypermedia controls. So, when you want client side functionality like this, you are going to have to glue things together a bit. I completely understand the desire of having an integrated ecosystem to avoid doing that.

Discussion

Live from the official Hacker News API

A modern reader for Hacker News · SvelteKit + Skeleton