Basic drag and drop
Uses the HTML5 drag events. Drop the card into the target box.
#draggable#droppable
Drag me
Drop here
Move items between lists
Drag tasks between the columns. Each column reports its item count.
#todoList#doneList[data-testid="task-2"]
To do (3)
- ⋮⋮Write login test
- ⋮⋮Add table assertions
- ⋮⋮Handle iframes
Done (0)
Sortable list
Reorder items into ascending order. The list tells you when it's correct.
#sortableList lili[data-value="3"]
- ⋮⋮Item 3
- ⋮⋮Item 1
- ⋮⋮Item 5
- ⋮⋮Item 2
- ⋮⋮Item 4
Current order: 3, 1, 5, 2, 4
Custom slider
No native input here. Use mouse down, move by offset and release, or the arrow keys.
#sliderHandle#sliderValue
Value: 0