Skip to content

Drag & drop

Drag and drop interactions enable users to select items and dragging them and dropping them in a different location.

Usage

This interaction allows users to directly manipulate the interface and can be applied to various use cases, such as reorganizing elements, transferring objects between areas, or altering the layout.

Drag and drop

Drag and drop interactions can be initiated implicitly or explicitly:

  • Implicit drag-and-drop: The user can directly drag and move an object to a desired position.
  • Explicit drag-and drop: To initiate dragging, the user must first enter an edit-mode or navigate to a dedicated setup page. Once this action is completed, the user gains the ability to perform CRUD operations (create, read, update, and delete).

When to use

  • Move: Transferring data between different areas on the screen, such as moving or assigning items (e.g. file uploader).
  • Reorder: Reordering items in a list (e.g. column selection dialog).
  • Arrange: To place and size objects in their desired positions on a canvas, like graphical editors or flexible dashboards.

Best practices

  • Drag-and-drop interactions can be imprecise and inefficient. Consider whether this type of interaction is the most suitable for the user's needs.
  • Ensure there's a keyboard-accessible alternative to perform the same tasks, for users who cannot use a mouse or touch screen.
  • Ensure that drop targets are large enough to minimize the need for precise movements.
  • Keep the dragging distance short.

Except where otherwise noted, content on this site is licensed under MIT License.