Skip to content
Search
Search the documentation
Basic list
GitHub 0

Basic list

A sortable list with a switch for the flip animation.

  • Item 1
  • Item 2
  • Item 3
  • Item 4
  • Item 5

This is the smallest useful zone. dndzone makes the ul a zone and each li an item, and both onconsider and onfinalize write e.items back to items. The checkbox changes flipDurationMs between 0 and 200: with 0 the items jump into place, with 200 they slide. Use the mouse, a touch screen, or focus an item, press Space, move it with the arrow keys and press Space again. See how it works for the lifecycle and the options for flipDurationMs.

On a touch screen, see the touch guide for a delay before a drag starts.

Edit this page Last updated: Nov 22, 2026