</> ConvertAtlas Developer Tools
Bootstrap 5 · Intermediate

Sortable Drag List

A drag-to-reorder task list, via SortableJS.

Requires Bootstrap 5, SortableJS. Add the CDN tags below to your page (styles in <head>, scripts before </body>). The downloaded file already includes them.
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/bootstrap@5.3.3/dist/css/bootstrap.min.css">
<script src="https://cdn.jsdelivr.net/npm/bootstrap@5.3.3/dist/js/bootstrap.bundle.min.js"></script>
<script src="https://cdn.jsdelivr.net/npm/sortablejs@1.15.2/Sortable.min.js"></script>
<div class="card border-0 shadow-sm" style="max-width:320px"><div class="card-body"><h6 class="fw-bold mb-2">Drag to sort</h6><ul class="list-group" id="srtList">
  <li class="list-group-item d-flex align-items-center gap-2" style="cursor:grab">⠿ Write proposal</li>
  <li class="list-group-item d-flex align-items-center gap-2" style="cursor:grab">⠿ Design mockups</li>
  <li class="list-group-item d-flex align-items-center gap-2" style="cursor:grab">⠿ Build prototype</li>
  <li class="list-group-item d-flex align-items-center gap-2" style="cursor:grab">⠿ Ship release</li>
</ul></div></div>
new Sortable(document.getElementById('srtList'),{animation:160,ghostClass:'bg-light'});
Free to use.This component uses Bootstrap 5, SortableJS (linked above). Copy any file, or download a ready-to-open .html page with the CDN links already included.