A draggable grip button with a native drag preview. Activation toggles the pressed state; the application controls movement.
Installation
Default
Labeled grip for application-defined dragging and reordering. Use when an item needs a dedicated move control.
Dragging the handle shows the browser's native drag preview. Listen to dragstart, drag, and dragend to connect it to application movement. In dragstart, use event.dataTransfer.setData() to supply drag data or event.dataTransfer.setDragImage() to customize the preview. The application manages drop targets and item positions.
Pressed
Pressed grip for an item selected for movement. Use to show the handle state while the application manages reordering.
Space, Enter, and click activation toggle pressed. Space also prevents page scrolling. Native dragging leaves pressed unchanged. Applications can set pressed directly. Keep the accessible label the same in both states.
Disabled
Disabled grip for an item that cannot move. Use to keep the control visible while movement is unavailable.
Release Status
All elements and features go through 3 phases of stability, pre-release, beta and stable.